coeffs: Extract and manipulate coefficients

Description Details Author(s) Examples

Description

Extract and manipulate coefficients of ktensor and kform objects; this using the methods of the spray package.

Details

To see the coefficients of a kform or ktensor object, use coeffs(), which returns a disord object (this is actually spray::coeffs()). Replacement methods also use the methods of the spray package.

Author(s)

Robin K. S. Hankin

Examples

1
2
3
a <- kform_general(5,2,1:10)
coeffs(a) # a disord object
coeffs(a)[coeffs(a)%%2==1] <- 100  # replace every odd coeff with 100

stokes documentation built on Jan. 18, 2022, 1:11 a.m.