What will be the output of the following R code? [code] > x <- list(foo = 1:4, bar = 0.6) > x [/code]

Giang Phạm

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

Tìm kiếm

Back
Top