variables: Available Variable Functions

Description Usage Arguments Value Examples

View source: R/variables.R

Description

See a listing of all available variable functions for use in r_data_frame or r_list.

Usage

1
variables(type = NULL, ncols = 5, ...)

Arguments

type

The output type. Must be either NULL (returns a character vector), "matrix", or "list"; or the user may extract a specific type from a list using: "character", "date", "factor", "integer", "logical", "numeric", "ordered factor". Setting type = TRUE will also return a list. The list version breaks the variable functions into classes. Specifying a specific class (e.g., type = "numeric" will list only variable functions that yield a numeric output.

ncols

The number of columns to use if type = "matrix".

...

Other arguments passed to matrix.

Value

Returns a character vector, matrix of all variable functions, or a list of variable functions by type.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
variables()

variables("list")
variables(TRUE)
names(variables("list"))
variables("ordered factor")
variables("numeric")

variables("matrix")
variables("matrix", ncols=3)
variables("matrix", 1)
variables("matrix", byrow = TRUE)

trinker/wakefield documentation built on Sept. 17, 2020, 11:03 p.m.