slice {Momocs}R Documentation

Subset based on positions

Description

Select rows by position, based on $fac. See examples and ?dplyr::slice.

Usage

slice(.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: arrange(), at_least(), chop(), combine(), dissolve(), fac_dispatcher(), filter(), mutate(), rename(), rescale(), rm_harm(), rm_missing(), rm_uncomplete(), rw_fac(), sample_frac(), sample_n(), select(), subsetize()

Examples

olea
slice(olea, 1) # if you only want the coordinates, try bot[1]
slice(olea, 1:20)
slice(olea, 21:30)

[Package Momocs version 1.4.1 Index]