Learn R Programming

Momocs (version 1.1.6)

arrange: Arranges (ala dplyr) on Momocs objects

Description

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

Usage

arrange(.data, ...)

Arguments

.data
a Coo, Coe, PCA object
...
logical conditions

Value

a Momocs object of the same class.

Details

dplyr verbs are maintained.

See Also

Other handling functions: at_least, chop, combine, dissolve, filter, mutate, rename, rm_uncomplete, rw_fac, sample_frac, sample_n, select, slice, subset.Coo, transmute

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