Data Handling Using R
Data Handling Using R
***********************************************************************************
***********
Which of the following command's print a subset of the dataset mtcars? All the
options mentioned
How to find structure of a dataframe - str()
Which of the following is not correct -Length of each vector used to create data
frame should be same* is wrong
The function write.csv() exports data into a file. However, this function by
default adds rownames to the file. Which argument can be used to turn off addition
of rownames? -- *rownames=False is wrong rownames=F
dplyr never prints row names since no dplyr method is guaranteed to preserve them.
-- True
What will the following lines of code return x <- matrix(1:18, 6, 3) apply(x, 2,
sum) -- vector of 3 elements
Which of the following data structures in R can store different types of data? --
Matrix, List *is wrong
Which of the following command's will print the dataset "mtcars" tin ascending
order of their mileage? -- mtcars[rev(order(mtcars$mpg)),]
Which of the following methods can be used to add a new column to a dataframe? --
All the options mentioned