The functions documented here all return a kform object.
Arguments
K
Object of class kform
yes,no
Specification of dimensions to either keep (yes) or discard
(no)
Author
Robin K. S. Hankin
Details
Function keep(omega,yes) keeps the terms specified and
discard(omega,no) discards the terms specified. It is not clear
to me what these functions mean from a mathematical perspective.
(o <- kform_general(7,3,seq_len(choose(7,3))))
keep(o,1:4) # keeps only terms with dimensions 1-4discard(o,1:2) # loses any term with a "1" in the index