1

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

Correct Answer: > x <- data.frame(foo = 1:4, bar = c(T, T, F, F)) > x

Make the most of this question

This page focuses on one R Programming MCQs question from Programming. After checking the answer, return to the topic list to practice more or run a timed set.

R Programming MCQs MCQ: 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 | Extra Education