keep: Keep or drop variables

Description Usage Arguments Details Author(s) See Also Examples

Description

Keep or drop variables

Usage

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

Arguments

K

Object of class kform

yes,no

Specification of dimensions to either keep (yes) or discard (no), coerced to a free object

Details

Function keep(omega,yes) keeps the terms specified and discard(omega,no) discards the terms specifed. It is not clear to me what these functions mean from a mathematical perspective.

Author(s)

Robin K. S. Hankin

See Also

lose

Examples

1
2
keep(kform_general(7,3),1:4)   # keeps only terms with dimensions 1-4
discard(kform_general(7,3),1)  # loses any term with a "1" in the index

wedge documentation built on Sept. 4, 2019, 9:02 a.m.