Basic R Programming | Data Structures in R


There are different types of data structures in R, lets us explore one by one by storing and retrieving data from these data structures,

Vectors : One-dimensional arrays.
Matrices: Two-dimensional data structures, elements in a matrix must be of the same type, whether a number, character, or Boolean. Matrices byrow is an optional parameter used by matrices.
Arrays : Similar to matrices;these can have more than two dimensions.
Lists: A list may contain a combination of vectors, matrices, data frames, and even other lists.
Data frames:A data frame is similar to a general matrix, but its columns can contain different modes of data, such as a number and character.
Factors: These are categorical variables,

No comments:

Post a Comment

Note: only a member of this blog may post a comment.