Learn R Programming

stokes (version 1.2-1)

keep: Keep or drop variables

Description

Keep or drop variables

Usage

keep(K, yes)
discard(K, no)

Value

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.

See Also

lose

Examples

Run this code

(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

Run the code above in your browser using DataLab