r_data: Pre-Selected Column Data Set

Description Usage Arguments Details Value See Also Examples

View source: R/r_data.R

Description

r_data - Generate a data set with pre-set columns selected.

r_data_theme - Generate a themed data set with pre-set columns.

Usage

1
2
3
r_data(n = 500, ...)

r_data_theme(n = 100, data_theme = "the_works")

Arguments

n

The length to pass to the randomly generated vectors (number of rows).

data_theme

A data theme. Currently selections include:

the_works

all available variable functions

survey

ID column plus 10 numeric 5-point Likert type response columns

survey2

ID column plus 10 5-point Likert type response columns

...

A set of optionally named arguments. Using wakefield variable functions require no name or call parenthesis.

Details

The pre-selected columns include:

The user may use ... to add additional columns. r_data is a convenience function to quickly produce a data set. For more specific usage use the more flexible r_data_frame function.

Value

Returns a tbl_df.

See Also

r_data_frame

Examples

1
2
3
4
5
6
7
8
9
r_data()
r_data(10)
r_data(10, paragraph, Attending = valid)

peek(r_data_theme())
plot(r_data_theme(), flip=TRUE)

r_data_theme(, "survey")
r_data_theme(, "survey2")

wakefield documentation built on Sept. 14, 2020, 1:07 a.m.