coo_smooth: Smooth shapes

Description Usage Arguments Value See Also Examples

View source: R/coo_modifyers.R

Description

Smooth shape coordinates using a moving average

Usage

1
coo_smooth(x, n, from_col, to_col, ...)

Arguments

x

coo_single, coo_list or mom_tbl

n

integer smoothing iterations

from_col

colnames from where to get the coo_list and how to name the resulting one (only for mom_tbl method)

to_col

colnames from where to get the coo_list and how to name the resulting one (only for mom_tbl method)

...

useless here

Value

a coo_single, coo_list or mom_tbl

See Also

Other coo_modifyers smooth: coo_smooth_curve()

Examples

1
bot %>% pick(1) %>% coo_smooth(5) %>% gg()

MomX/Momocs2 documentation built on May 13, 2020, 4:28 a.m.