Examveda

Which of the following R statement will save the output to the file for following R code?
> a <- data.frame(x = rnorm(100), y = runif(100))
> b <- c(3, 4.4, 1 / 3)

A. save(a, b, file = "mydata.rda")

B. save_image(a, b, file = "mydata.rda")

C. keep(a, b, file = "mydata.rda")

D. keep_image(a, b, file = "mydata.rda")

Answer: Option A


This Question Belongs to R Programming >> Data Structures In R Programming

Join The Discussion

Related Questions on Data Structures in R Programming