Professional Documents
Culture Documents
Prog 3 USING DATA FRAMES IN R
Prog 3 USING DATA FRAMES IN R
AIM:
To write a program to create and perform data frames operations in R.
ALGORITHM:
1. Initialize the variables emp.data and using the function data.frame() input the
values as a list.
2. By using c() input the list of values into the frame.
3. Using the variable final extract the data and print it.
4. Use rbind() to add a row in the data frame
5. Use cbind() to add a column in data frame.
6. The inputs for rbind() and cbind() are given as list.
7. Initialize column to NULL, to delete the column from the data frame.
8. Using print() we can print the output.
SOURCE CODE:
OUTPUT:
Extracting 2nd and 3rd row corresponding to 1st and 4th column
RESULT:
Thus, the program is completed and the output is verified successfully.