πŸ“Š R Programming
Q. What will be the Correct R code for the following output?
foo bar
1 1 TRUE
2 2 TRUE
3 3 FALSE
4 4 FALSE
  • (A) > x <- data.frame(foo = 1:4, bar = c(F, T, F, F)) > x
  • (B) > x <- data.frame(foo = 1:6, bar = c(F, T, F, F)) > x
  • (C) > x <- data.frame(foo = 1:4, bar = c(T, T, F, F)) > x
  • (D) > x <- data.frame(foo = 14:1, bar = c(F, T, F, F)) > x
πŸ’¬ Discuss
βœ… Correct Answer: (C) > x <- data.frame(foo = 1:4, bar = c(T, T, F, F)) > x

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
86
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
92%
Success Rate