A
Q. What will be the output of the following R code?
> x <- list(a = matrix(1:4, 2, 2), b = matrix(1:6, 3, 2))
> lapply(x, function(elt) { elt[,1] })
- Correct Answer - Option(A)
- Views: 23
- Filed under category R Programming
- Hashtags:
Discusssion
Login to discuss.