Learn R Programming

weyl (version 0.0-7)

spray: Create spray objects

Description

Function spray() creates a sparse array; function weyl() coerces a spray object to a Weyl object.

Usage

spray(M,x,addrepeats=FALSE)

Value

Return a weyl or a Boolean

Arguments

M

An integer-valued matrix, the index of the weyl object

x

Numeric vector of coefficients

addrepeats

Boolean, specifying whether repeated rows are to be added

Author

Robin K. S. Hankin

Details

The function is discussed and motivated in the spray package.

Examples

Run this code

(W <- spray(matrix(1:36,6,6),1:6))
weyl(W)

as.weyl(15,d=3)

Run the code above in your browser using DataLab