Q. What will be the output of the following R code?
> f <- function(elt) {
+ elt[, 1]
+ }
> lapply(x, f)
β
Correct Answer: (A)
$a
[1] 1 2
$b
[1] 1 2 3