Data Structures In R Programming - Study Mode
[#11] What will be the output of the following R code? > x <- matrix(1:6, 2, 3)
> x[1, ]
Correct Answer
(A) 1 3 5
[#12] Which of the following extracts first four element from the following R vector? > x <- c("a", "b", "c", "c", "d", "a")
Correct Answer
(B) x[1:4]
[#13] The . . . . . . . . function is used to generate summary statistics from the data frame within strata defined by a variable.
Correct Answer
(C) group_by()
[#14] Main way to read the data back in (parsing it) using the function.
Correct Answer
(D) dget()
[#15] If we want to save individual R objects to a file, we use the . . . . . . . . function.
Correct Answer
(A) save()