- attach() - NOT UNDER ANY CIRCUMSTANCES (unless never change)
-
[Basic data types - vectors]
- Hierarchy of data types and implicit coercion
- Class, typeof, length
- dim, names
- Sequences
- NAs and is.na()
-
Vectorized/Element-wise Functions & the Recycling Rule
- The family of apply functions.
-
- index/position –
x[ c(10, 2) ]
- Subset with 0
- logical indexing –
x[ c(FALSE, FALSE, TRUE, TRUE, FALSE) ]
- name –
x[ c("a", "xyz") ]
- exclusion via negative position/index –
x[ - c(1, 3, 9) ]
- empty –
x[]
- Subsetting outside the length of a vector
- drop = TRUE/FALSE - factors and
- 2-dimensional subsetting
- by two column matrix
- by matrix
- index/position –
-
- [ verus [[
- partial name matching with $ and not with [[
- hierarchical indexing