Learn R Programming

stokes (version 1.1-1)

coeffs: Extract and manipulate coefficients

Description

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

Arguments

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.

Examples

Run this code
# NOT RUN {
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


# }

Run the code above in your browser using DataLab