arrange | R Documentation |
Arrange shapes by variables, from the $fac
. See examples and ?dplyr::arrange
.
arrange(.data, ...)
.data |
a |
... |
logical conditions |
dplyr verbs are maintained.
a Momocs object of the same class.
Other handling functions:
at_least()
,
chop()
,
combine()
,
dissolve()
,
fac_dispatcher()
,
filter()
,
mutate()
,
rename()
,
rescale()
,
rm_harm()
,
rm_missing()
,
rm_uncomplete()
,
rw_fac()
,
sample_frac()
,
sample_n()
,
select()
,
slice()
,
subsetize()
olea
# we create a new column
olea %>% mutate(id=1:length(.)) %$% fac$id
# same but now, shapes are arranged in a desc order, based on id
olea %>% mutate(id=1:length(.)) %>% arrange(desc(id)) %$% fac$id
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.