R | Slicing and Extracting Data
Indexing Vectors x[n] nth element x[-n] all but the nth element x[1:n] first n elements x[-(1:n)] elements from n+1 to the end x[c(1,4,2)] specific elements x[&...
Indexing Vectors x[n] nth element x[-n] all but the nth element x[1:n] first n elements x[-(1:n)] elements from n+1 to the end x[c(1,4,2)] specific elements x[&...
OBJECTS R has five basic classes of objects: Character Numeric Integer Complex Logical However, the most basic object is a vector. There are two things which yo...