adplus-dvertising
frame-decoration

Question

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

Posted under R Programming

Answer: (a).save(a, b, file = “mydata.rda”)

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following R statement will save the output to the file for following R code?

Similar Questions

Discover Related MCQs

Q. Which of the following statement will load the objects to the file named “mydata.RData”?

Q. Point out the wrong statement?

Q. ________ opens a connection to a file compressed with gzip.

Q. Connections to text files can be created with the ________ function.

Q. Which of the following R code creates a connection to ‘foo.txt’?

Q. Which of the following code opens a connection to the file foo.txt, reads from it, and closes the connection when its done?

Q. Which of the following opens connection to gz-compressed text file?

Q. Point out the correct statement?

Q. Point out the wrong statement?

Q. Point out the correct statement?

Q. Point out the wrong statement?

Q. Point out the wrong statement?

Q. Which of the following code represents internal representation of a Date object?

Q. Which of the following function gives the day of the week?

Q. Point out the correct statement?

Q. Point out the wrong statement?

Q. Which of the following return a subset of the columns of a data frame?

Q. Point out the correct statement?

Q. _________ extract a subset of rows from a dataframe based on logical conditions.

Q. _________ generate summary statistics of different variables in the data frame, possibly within strata.