What will be the Correct R code for the following output? [code] foo bar 1 1 TRUE 2 2 TRUE 3 3 FALSE 4 4 FALSE [/code]

What will be the Correct R code for the following output?
Code:
foo bar
1 1 TRUE
2 2 TRUE
3 3 FALSE
4 4 FALSE
A.
Code:
> x <- data.frame(foo = 1:4, bar = c(F, T, F, F))
> x
B.
Code:
> x <- data.frame(foo = 1:6, bar = c(F, T, F, F))
> x
C.
Code:
> x <- data.frame(foo = 1:4, bar = c(T, T, F, F))
> x
D.
Code:
> x <- data.frame(foo = 14:1, bar = c(F, T, F, F))
> x
 

Tìm kiếm

Back
Top