-
Notifications
You must be signed in to change notification settings - Fork 12
Data Types in R and their Modes
Rahul Mondal edited this page Feb 7, 2021
·
11 revisions
There are several data types depending upon the nature of work one has to do. Following is a list in which you can store data.
- It contains a sequence of items of the same type. This is most basic structure, e.g. x <- 10 or name <- ‘Harry’
- A Factor is a Categorical Variable.
- A Categorical variable represents types of attributes. e.g. Gender: Male, Female or Flavors of ice cream: Chocolate, Vanilla, Strawberry.
- An Array is a table with ‘k’ dimensions. Usually used to store data in a table format. If we create an array of dimensions (2,3,4) then 4 rectangular matrices will be created, each with 2 rows and 3 columns.
Source: https://www.tutorialspoint.com/r/r_arrays.htm
- A Matrix is an Array, but having specifically two dimensions, e.g. ‘k=2’.
- A data frame is a table composed with one or several vectors and/or factors all of the same lengths but possibly of different modes. A data frame may contain multiple arrays.
- A TS is a Time Series dataset, additionally it contains attributes like frequency and dates.
- A list is the ultimate data type to store every element, including vectors, factors, data frames, and even list itself.
Programming Language R
- WHAT IS R?
WHY R? - Install R & RStudio
- Data Types & Their Modes
- Reading and Writing Data
- Data Wrangling with tidyr
User-Interface
Group Comparison of Variables within 2 Groups
Comparison of Multiple Groups
Group Comparison of Multivariate Data
Unsupervised Learning
Supervised Learning