Learn R Programming

Momocs (version 1.4.1)

arrange: Arrange rows by variables

Description

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

Usage

arrange(.data, ...)

Value

a Momocs object of the same class.

Arguments

.data

a Coo, Coe, PCA object

...

logical conditions

Details

dplyr verbs are maintained.

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

Run this code
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

Run the code above in your browser using DataLab