wakefield (version 0.3.3)

variables: Available Variable Functions

Description

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

Usage

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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataCamp Workspace