Question
> 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
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”?
View solution
Q. Point out the wrong statement?
View solution
Q. ________ opens a connection to a file compressed with gzip.
View solution
Q. Connections to text files can be created with the ________ function.
View solution
Q. Which of the following R code creates a connection to ‘foo.txt’?
View solution
Q. Which of the following code opens a connection to the file foo.txt, reads from it, and closes the connection when its done?
View solution
Q. Which of the following opens connection to gz-compressed text file?
View solution
Q. Point out the correct statement?
View solution
Q. Point out the wrong statement?
View solution
Q. Point out the correct statement?
View solution
Q. Point out the wrong statement?
View solution
Q. Point out the wrong statement?
View solution
Q. Which of the following code represents internal representation of a Date object?
View solution
Q. Which of the following function gives the day of the week?
View solution
Q. Point out the correct statement?
View solution
Q. Point out the wrong statement?
View solution
Q. Which of the following return a subset of the columns of a data frame?
View solution
Q. Point out the correct statement?
View solution
Q. _________ extract a subset of rows from a dataframe based on logical conditions.
View solution
Q. _________ generate summary statistics of different variables in the data frame, possibly within strata.
View solution
Suggested Topics
Are you eager to expand your knowledge beyond R Programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!