1

In R, how do you create a data frame named my_df with columns Name and Age?

Correct Answer: my_df <- data.frame(Name = c("Alice", "Bob"), Age = c(25, 30))

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: In R, how do you create a data frame named my_df with columns Name and Age? | Extra Education