ePow: Convert vector x into a matrix X_{ij} = {x_i}^j

Description Usage Arguments Value Examples

Description

Convert vector x into a matrix X_{ij} = {x_i}^j

Usage

1
ePow(x, colParamVector)

Arguments

x

Data vector.

colParamVector

Vector of column powers.

Value

A matrix X of size length(x) X length(colParamVector)

X_{ij} = {x_i}^j

Examples

1
2
x <- 1:6
ePow(x,0:2)


Search within the expandFunctions package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.