View source: R/coo-ldk-utilities.R
rearrange_ldk | R Documentation |
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)
Coo |
any appropriate |
new_ldk_ids |
a vector of numeric with the ldk to retain and in the right order (see below) |
a Momocs object of same class
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.