Getting Started with R - Part 8: Data frames - Construction, Subsetting and Structure
Vectors and matrices are designed to hold single types. When we need to mix data types in a tabular form we can use a data frame.
Vectors and matrices are designed to hold single types. When we need to mix data types in a tabular form we can use a data frame.
Factors are like vectors but with values classed into levels. When vectors have a limited number of repeated values they fit the bill.
Adding Captions to matrices make them more readable and allows us to retain information when we subset the matrix.
Often we have the need to arrange data in a structure with rows and columns, or we need to represent a collection of vectors. R has a built-in matrix type th...
Reaching beyond the basic indexing of Vectors we started in our previous post Vectors Operations we will continue selecting, subsetting, replacing vectors be...