R Programming has various Data Structures for efficient manipulation of Data.
Following are the list of data structures supported by R.
4. Data frame
This exercise helps through various operations of R Data structures.
Answers to the exercises are available here.
Create an atomic vector of Character type, double type, logical type , integer type, complex type and raw type
Check whether each of the created data structure is of vector type as well as check the class of each of the data.
Create a List of heterogeneous data, which include numeric, character and logical vectors and prints the lists.
Create a matrix of 3 rows and 4 columns which stores data from 1 to 12 and arrange the value row wise.
Create a matrix of 3 rows and 4 columns which stores random data and arrange the matrix column wise
Create two 2 x 2 matrices with random values and perform all arithmetic operations with those two and print the resultant matrices
Create a random matrix having values between 1 and 1000 and print the matrix and transpose of the matrix
Create Data Frames which contain details of 5 employees and display the same.
Create Data Frames which contain details of 5 employees and display summary of the data
Create a Data Frame of 5 employees and display the details of First and Last Employee and Names of All employees.