Generate columns that are related.

Usage

1
2

Arguments

x

A starting column.

j

The number of columns to produce.

name

An optional prefix name to give to the columns. If NULL
attempts to take from the varname attribute of x. If not found,
"Variable" is used.

operation

A operation character vector of length 1; either
c("+", "-", "*", "/"). This is the relationship between columns.

mean

Mean is the average value to add, subtract, multiple, or divide
by.

sd

The amount of variability to allow in mean. Setting to 0
will constrain the operation between x_(n - 1) column and x_n to be exactly
the mean value (see Examples for a demonstration).

rep.sep

A separator to use for repeated variable names. For example
if the age is used three times
(r_data_frame(age, age, age)), the name "Age" will be assigned to all
three columns. The results in column names c("Age_1", "Age_2", "Age_3").

digits

The number of digits to round to. Defaults to the max number
of significant digits in x.