Examveda
Examveda

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'))

C. createDataFrame(1, 2, 3)

D. matrix(1:3, nrow = 1, ncol = 3)

Answer: Option B


This Question Belongs to R Programming >> Introduction To R Programming

Join The Discussion

Related Questions on Introduction to R Programming