So far I have talked about data structures like Vector, Matrix and Data Frames. Another data structure, which allows us to put other structures in a given order is List. The best part about lists is that the elements of a list can be vector, matrix and data frames. And, they can be part of … Continue reading Working with Lists in R

# Tag: R-programming

# Working with Data Frames in R (Part II)

In the first blog on data frames, we used existing data frames and saw how to access, filter and sort the members. However, many times you may need to create a new data frame and work with the same. Creating a new Data Frame As you know that the data frames is a list of vectors … Continue reading Working with Data Frames in R (Part II)

# Working with Data Frames in R (Part I)

Data Frame is a datatype which is used for storing data in tabular format. Each element of a data frame is a vector of equal length. While matrices also give you a tabular look of the data, you do need to understand the following differences between matrices and data frames. Matrices generally consist of single … Continue reading Working with Data Frames in R (Part I)

# Working with Matrices in R

Like Vectors, matrix is a data structure. It is used for storing data in two-dimensional tables with rows and columns of data. Also, like vectors, matrix in R contains a single type of data. Since, often matrix is used for numerical calculations, its elements are often numerical data. Creating Matrix R-provides a method called matrix, … Continue reading Working with Matrices in R

# Working with Vectors in R

A vector is a sequence of data elements of the same basic data types. In a single vector, you cannot mix different data types. However, if you do so, R will decide the most appropriate data types at runtime. Note In R, you will find the following basic data types : Numeric (e.g. 2, 2.5, … Continue reading Working with Vectors in R

# Getting Started with R

The best way to learn anything new is to do it, be hands-on. Hence the first thing you must do as a developer is to install R on your machine and play with it. Download R and R-Studio Download R-studio from following URL: https://www.rstudio.com/products/rstudio/download/ Choose the Open Source Desktop version for learning purposes. Download R … Continue reading Getting Started with R