Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

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)

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: a
Explanation: You can save all objects in your workspace using the save.image() function.

Join The Discussion