Q. What will be the output of the following R code?
> y <- data.frame(a = 1, b = "a")
> dput(y)
> y <- data.frame(a = 1, b = "a")
> dput(y)
β
Correct Answer: (C)
structure(list(a = 1, b = structure(1L, .Label = "a", class = "factor")), .Names\
= c("a",
"b"), row.names = c(NA, -1L), class = "data.frame")