9. Which of the following statement applies the function (FUN) to either rows (1) or columns (2) on object X ?
Correct Answer is : apply(X, MARGIN, FUN, …)
10. Which of the following statement finds the maximum for each column ?
Correct Answer is : apply(x,2,max)
11. which of the following statement tells the row with the minimum value for every column ?
Correct Answer is : which.min(x)
12. Which of the following may be used for linear regression ?
Correct Answer is : solve(A,B)
13. Which of the following finds row sums for each level of a grouping variable ?
Correct Answer is : rowsum(x, group, reorder = TRUE, …)
14. Which of the following sets the size of the outer margins for the graph ?
Correct Answer is : par(omi=c(0,0,1,0) )
15. Which of the following function is used for plotting histogram ?
Correct Answer is : hist()
16. Which of the following will add the title “R language” to the graph ?
Correct Answer is : title( “R language”)
17. Individual R objects can be saved to a file using the _____ function.
Correct Answer is : save
18. Point out the correct statement :
Correct Answer is : All of the mentioned
19. Which of the following statement will save the output to the file for following code ?
> a <- data.frame(x = rnorm(100), y = runif(100))
> b <- c(3, 4.4, 1 / 3)
Correct Answer is : save(a, b, file = “mydata.rda”)
20. Which of the following statement will load the objects to the file named “mydata.RData” ?