R- Variables
A Named storage that can be used by our program.
A Variable can be assigned value in three ways:
To see the data type of a variable we use class( ) function.A Named storage that can be used by our program.
A Variable can be assigned value in three ways:
- var_name <- Value # leftward operator
- var_name = value # assignment operator
- var_value -> Variables_name # rightward operator
To see the list of variables we use ls( ) function.
To delete a variable we use rm( ) function.
R- Data types
When we create some variable in a memory, then it is stored according to the value inside that variable.
Based on the type of value the memory is allocated.
Following are the basic Data Types:
- Vectors : a combination of values.
- List : Can contain many different type of objects.
- Matrices : A two dimensional Data Set.
- Arrays : Multi-dimensional Data Set.
- Factors : Factors store Vectors along with labels.
- Data Frames : Tabular Data objects, can have multiple types.
0 Comments:
Post a Comment