Learn R Programming

Momocs (version 1.1.6)

slice: Slices (ala dplyr) on Momocs objects

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

Value

a Momocs object of the same class.

Details

dplyr verbs are maintained.

See Also

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

Examples

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

Run the code above in your browser using DataLab