dataToList | R Documentation |
Import RData in a list format
dataToList(source)
source |
A RData file. |
A list containing the objects present in the source RData file.
# Dummy example:
# Create two objects:
object_1 <- "This"
object_2 <- "Worked!"
# Save them as an RData file in R's temporary directory
save(object_1, object_2, file = paste0(tempdir(), "/dataToList_example.RData"))
# Remove the dummy objects as we don't need them any more
rm(object_1, object_2)
# Load the RData file as a single object
x <- dataToList(paste0(tempdir(), "/dataToList_example.RData"))
# inspect x
x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.