wedge (version 1.0-3)

keep: Keep or drop variables

Description

Keep or drop variables

Usage

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.

See Also

lose

Examples

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

# }

Run the code above in your browser using DataCamp Workspace