Fda 4
Fda 4
7. What information (structure summary) you will get from str() function?
It provides summary of
29. Print First, Second Row and Second and Third Column
31. Print all the rows having “mpg” value greater than 14
32. Print all the rows having "hp" value less than 100
33. Print all the rows having “disp” value is between 100 and 200
head(): This function returns the first few rows of a data frame or vector. By default, it shows the first
6 rows, but you can specify a different number if desired.
tail(): This function returns the last few rows of a data frame or vector. By default, it shows the last 6
rows, but you can also specify a different number.
35. Use head() and tail() commands to display sample observations of mtcars dataset
36. Use head() command to Print first 10 observations
38. Sort the observations of the dataset “mtcars” in increasing order based on the
39. Sort the observations of the dataset “mtcars” in decreasing order based on the
41. Sort the observations of the dataset “mtcars” in decreasing order based on the