Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

load_dataset

Retrieve a Single Data Set


Description

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.

Usage

load_dataset(id, package, keep_rownames = FALSE)

Arguments

id

(character(1))
Name of the data set.

package

(character(1))
Package to load the data set from.

keep_rownames

(logical(1))
Keep possible row names (default: FALSE).

Examples

head(load_dataset("iris", "datasets"))

mlr3misc

Helper Functions for 'mlr3'

v0.10.0
LGPL-3
Authors
Michel Lang [cre, aut] (<https://orcid.org/0000-0001-9754-0393>), Patrick Schratz [aut] (<https://orcid.org/0000-0003-0748-6624>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.