Note

Replacement function

← vs =

Order of operations in maths operation evaluation

NA type

Introduction

R is powerful for conducting statistics and other specialized data analysis. It was invented by scientists for statistical computing and a community of specialized packages has been built around the language.

Package repository: CRAN repository, Crantastics, Github

Package manager: Pacman

R’s syntax is an older LISP-style language inspired by an even older language (S).

R has 6 atomic classes including character, numeric (real or decimal), integer, complex, and logical.

Most commonly used DS in R:

Vector

If we try to combine types in vector then R automatically coerces to highest type.