p_data: Package Data Sets

Description Usage Arguments Value See Also Examples

View source: R/p_data.R

Description

Generate a script of all data sets contained in package.

Usage

1
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

1
2
3
4
5
6
p_data()
p_data(lattice)
## Not run: 
p_data(static=TRUE)

## End(Not run)

pacman documentation built on May 2, 2019, 1:08 p.m.