R Programming

Lists in R

Different types of data structures in R includes vectors, matrices, data frames and lists. Having already discussed vectors, matrices and data frames, the focus of this article is lists. The lists are type of data structures that allow you to store and organize different type of data types including vectors, matrices and even other lists.

Lists in R Read More »

Data Frames in R

Data frames in R are another data structure used for organizing and manipulating data in a table form. These are two-dimensional structure where rows represent observations and columns represent variables. Creating a data frame requires using data.frame() function, where the variables are specified by naming vectors or columns. For example, to create a data frame

Data Frames in R Read More »

Matrix in R

In R, matrix is a two-dimensional data structure that stores values of same data type in rows and columns. Unlike vectors, that were one dimensional, matrix can hold values in rows and columns. One can create matrix in R using the matrix() function. While creating a matrix using matrix() function, you need to specify data

Matrix in R Read More »