Question
> f <- function(elt) {
+ elt[, 1]
+ }
> lapply(x, f)
a.
$a
[1] 1 2
$b
[1] 1 2 3
b.
$a
[1] 1 2 3
$b
[1] 1 2 3
c.
$a
[1] 1 2 3
$b
[1] 1 2
d.
Error
Posted under R Programming
[1] 1 2
$b
[1] 1 2 3
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What will be the output of the following R code?
Similar Questions
Discover Related MCQs
Q. Point out the correct statement?
View solution
Q. What will be the value of following R expression?
View solution
Q. The recover() function will first print out the function call stack when an _______ occurs.
View solution
Q. __________ prints out the function call stack after an error occurs.
View solution
Q. Point out the wrong statement?
View solution
Q. Which of the following is primary tool for debugging?
View solution
Q. ________ allows you to insert debugging code into a function a specific places.
View solution
Q. Point out the correct statement?
View solution
Q. _______ allows you to modify the error behavior so that you can browse the function call stack.
View solution
Q. ______ suspends the execution of a function wherever it is called and puts the function in debug mode.
View solution
Q. debug() flags a function for ______ mode in R mode.
View solution
Suggested Topics
Are you eager to expand your knowledge beyond R Programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!