keep | R Documentation |
Keep or drop variables
keep(K, yes)
discard(K, no)
K |
Object of class |
yes , no |
Specification of dimensions to either keep (yes) or discard (no) |
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.
The functions documented here all return a kform
object.
Robin K. S. Hankin
lose
(o <- kform_general(7,3,seq_len(choose(7,3))))
keep(o,1:4) # keeps only terms with dimensions 1-4
discard(o,1:2) # loses any term with a "1" in the index
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.