power.data {ncpen}R Documentation

Power Data

Description

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

Usage

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

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



[Package ncpen version 1.0.0 Index]