Vidyalelo
R Programming · Q10

Introduction to R Programming

Programming · R Programming · question 10

Q10

How is a data frame created in R?

A.
df <- c(1, 2, 3)
B.
data.frame(x = 1:3, y = c('A', 'B', 'C'))
Answer
C.
createDataFrame(1, 2, 3)
D.
matrix(1:3, nrow = 1, ncol = 3)

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board