Skip to contents

Useful to drop harmonics on Coe objects. Should only work for Fourier-based approached since it looks for [A-D][1-drop] pattern.

Usage

rm_harm(x, drop = 1)

Arguments

x

Coe object

drop

numeric number of harmonics to drop

Value

a Momocs object of same class

See also

Other handling functions: arrange(), at_least(), chop(), combine(), dissolve(), fac_dispatcher(), filter(), mutate(), rename(), rescale(), rm_missing(), rm_uncomplete(), rw_fac(), sample_frac(), sample_n(), select(), slice(), subsetize()

Examples

data(bot)
bf <- efourier(bot)
#> 'norm=TRUE' is used and this may be troublesome. See ?efourier #Details
#> 'nb.h' set to 10 (99% harmonic power)
colnames(rm_harm(bf, 1)$coe)
#>  [1] "A2" "A3" "A4" "A5" "A6" "A7" "A8" "A9" "B2" "B3" "B4" "B5" "B6" "B7" "B8"
#> [16] "B9" "C2" "C3" "C4" "C5" "C6" "C7" "C8" "C9" "D2" "D3" "D4" "D5" "D6" "D7"
#> [31] "D8" "D9"