You are on page 1of 5

0801IT211099

Yash Verma

Lab Assignment- 07

Q1 Write a R program to create a data frame from four given vectors


Sol:

Q2 Write a R program to get the structure of a given data frame.


Sol:

3 Write a R program to get the statistical summary and nature of the data of
a given data frame.
Sol:
0801IT211099
Yash Verma

Q4 Write a R program to extract specific column from a data frame using


column name.
Sol:

Q5 Write a R program to extract 3 rd and 5 th rows with 1 st and 3 rd columns from a


given data frame.
Sol:
0801IT211099
Yash Verma

Q6 Write a R program to add a new column in a given data frame.


Sol:

Q7 Write a R program to add a new row in a given data frame.


Sol:
0801IT211099
Yash Verma

Q8 Take airquality and mtcar dataframe and perform following .


1.structure of dataframe.
2.Summary of dataframe.
3 Dimension of data frame.
4.Add coloumn
5Add row
Sol:
0801IT211099
Yash Verma

You might also like