Last chance! 50% off unlimited learning
Sale ends in
Helps reorder and retain landmarks by simply changing the order in which they
are recorded in the Coo
objects. Note that for Out
and Opn
objects, this rearranges the $ldk
component. For Ldk
, it rearranges
the $coo
directly.
rearrange_ldk(Coo, new_ldk_ids)
a Momocs object of same class
any appropriate Coo
object (typically an Ldk
)
with landmarks inside
a vector of numeric with the ldk to retain and in the right order (see below)
Other ldk/slidings methods:
add_ldk()
,
def_ldk()
,
def_slidings()
,
get_ldk()
,
get_slidings()
,
slidings_scheme()
# Out example
hearts %>% slice(1) %T>% stack %$% ldk
hearts %>% rearrange_ldk(c(4, 1)) %>%
slice(1) %T>%stack %$% ldk
# Ldk example
wings %>% slice(1) %T>% stack %$% coo
wings %>% rearrange_ldk(c(1, 3, 12:15)) %>%
slice(1) %T>% stack %$% coo
Run the code above in your browser using DataLab