What will be the output of the following R code?
> x <- list(foo = 1:4, bar = 0.6)
> x
> x <- list(foo = 1:4, bar = 0.6)
> xA. $foo
[1] 1 2 3 4
$bar
[1] 0.6
B. $foo
[1] 0 1 2 3 4
$bar
[1] 0 0.6
C. $foo
[1] 0 1 2 3 4
$bar
[1] 0.6
D. Error
Answer: Option A

Join The Discussion