keep: Keep or drop variables

Description Usage Arguments Details Value 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 specified. It is not clear to me what these functions mean from a mathematical perspective.

Value

The functions documented here all return a kform object.

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

stokes documentation built on Jan. 18, 2022, 1:11 a.m.