power.data: Power Data

Description Usage Arguments Value Examples

View source: R/ncpen_util.R

Description

power.data power data and return a data.frame with column names with tail.

Usage

1
power.data(data, power, tail = "_pow")

Arguments

data

a data.frame or matrix object.

power

power.

tail

tail text for column names for powered data. For example, if a column "sales" is powered by 4 (=power) and tail is "_pow", then the output column name becomes "sales_pow4".

Value

This returns an object of matrix.

Examples

1
2
df = data.frame(a = 1:3, b= 4:6);
power.data(df, 2, ".pow");

ncpen documentation built on May 1, 2019, 9:21 p.m.