Learn R Programming

pacman (version 0.5.1)

p_data: Package Data Sets

Description

Generate a script of all data sets contained in package.

Usage

p_data(package = "datasets", static = FALSE)

Arguments

package

name of package (default is the base install datasets package).

static

logical. If TRUE a static text document is returned (e.g. data("datasets")).

Value

Returns the data sets of a package as a data.frame. (static = FALSE) or as a static text file (static = TRUE).

See Also

data

Examples

Run this code
# NOT RUN {
p_data()
p_data(lattice)
# }
# NOT RUN {
p_data(static=TRUE)
# }

Run the code above in your browser using DataLab