arrange: Arrange rows by variables

View source: R/cl-handling.R

arrangeR Documentation

Arrange rows by variables

Description

Arrange shapes by variables, from the $fac. See examples and ?dplyr::arrange.

Usage

arrange(.data, ...)

Arguments

.data

a Coo, Coe, PCA object

...

logical conditions

Details

dplyr verbs are maintained.

Value

a Momocs object of the same class.

See Also

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

Examples

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

vbonhomme/Momocs documentation built on Nov. 13, 2023, 8:54 p.m.