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 […]

## Basic Data Structures II: Matrices in R

What are Matrices in R? Matrices in R are vectors in two dimensions. A matrix comprises of a rectangular layout of homogeneous data-type members arranged in rows and columns. Most often you will find yourself dealing with matrix of numerics, though you can have a matrix of any R object. For example, following is a […]

## Basic Data Structures I: Vectors in R

Vectors are the most frequently used data structures. Vectors in R are as fundamental as arrays in C and PHP, cons in Lisp, lists in Python, and classes in Java. What are Vectors in R? N.B. This article assumes that you have complete understanding of basic data types in R. If you don’t, read atomic […]