Vidyalelo
R Programming · Q67

Control Structures in R Programming

Programming · R Programming · question 67

Q67

What will be the output of the following R code? > x lapply(x, mean)

A.
$a
[1] 3
$b
[1] 0.1322028
Answer
B.
$a
[1] 4
$b
[1] 0.1322028
C.
$a
[1] 5
$b
[1] 0.1322028
D.
$a
[2] 5
$b
[1] 3

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board