What are Arrays in R? Arrays in R are multidimensional (sometimes called n-d) data structures that hold members of a single data type. From an implementation point of view, an array is a vector that has one or two additional attributes – dim and dimnames. Only dim attribute is mandatory for an array. Another way […]
Basic Data Structures IV: Lists in R
What are Lists in R? Lists in R are a collection of heterogeneous data types. Therefore, lists in R can contain elements of different types. One way of viewing lists in R is to perceive them as vectors that don’t care (at least while adding elements) about the types of its members. Yet another way […]
Basic Data Structures III: Data Frames in R
What are Data Frames in R? Data Frames in R are a two dimensional data structure used to hold data of heterogeneous types in a table-like format. A data frame comprises of rows and columns. Columns are the variables that you record in an experiment. Rows are the observation. More specifically, each row is an […]