
Last chance! 50% off unlimited learning
Sale ends in
Loads a data set with name id
from package package
and returns it.
If the package is not installed, an error with condition "packageNotFoundError" is raised.
The name of the missing packages is stored in the condition as packages
.
load_dataset(id, package, keep_rownames = FALSE)
(character(1)
)
Name of the data set.
(character(1)
)
Package to load the data set from.
(logical(1)
)
Keep possible row names (default: FALSE
).
# NOT RUN {
head(load_dataset("iris", "datasets"))
# }
Run the code above in your browser using DataLab