L Lê Như Ý New member Sep 20, 2021 #1 What will be the output of the following R code? Code: > x <- data.frame(foo = 1:4, bar = c(T, T, F, F)) > ncol(x) A. 2 B. 4 C. 7 D. 9
What will be the output of the following R code? Code: > x <- data.frame(foo = 1:4, bar = c(T, T, F, F)) > ncol(x) A. 2 B. 4 C. 7 D. 9
T Trường Phan New member Sep 20, 2021 #2 Answer: a Explanation: Data frames are represented as a special type of list where every element of the list has to have the same length. Upvote 0 Downvote
Answer: a Explanation: Data frames are represented as a special type of list where every element of the list has to have the same length.