Learn R Programming

matlib (version 1.0.0)

vandermode: Vandermode Matrix

Description

The function returns the Vandermode matrix of a numeric vector, x, whose columns are the vector raised to the powers 0:n.

Usage

vandermode(x, n)

Value

a matrix of size length(x) x n

Arguments

x

a numeric vector

n

a numeric scalar

Examples

Run this code
vandermode(1:5, 4)

Run the code above in your browser using DataLab