Question
> x <- list(a = 1:5, b = rnorm(10))
> lapply(x, mean)
a.
$a
[1] 3
$b
[1] 0.1322028
b.
$a
[1] 4
$b
[1] 0.1322028
c.
$a
[1] 5
$b
[1] 0.1322028
d.
$a
[2] 5
$b
[1] 3
Posted under R Programming
[1] 3
$b
[1] 0.1322028
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 wrong statement?
View solution
Q. Point out the correct statement?
View solution
Q. The _____ function takes a vector or other objects and splits it into groups determined by a factor or list of factors.
View solution
Q. Which of the following is valid body of split function?
View solution
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!