coo_smooth variant that preserves coordinates of first and alst points. Typically useful for curves

coo_smooth_curve(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()

Examples

bot %>% pick(1) #todo
#> # A tibble: 138 x 2 #> x y #> <dbl> <dbl> #> 1 37 561 #> 2 40 540 #> 3 40 529 #> 4 43 508 #> 5 46 487 #> 6 48 477 #> 7 52 456 #> 8 54 435 #> 9 57 414 #> 10 59 403 #> # … with 128 more rows #> ❯coo_single with 138 coordinates