Learn R Programming

Momocs (version 1.1.6)

transmute: Transmutes (ala dplyr) on Momocs objects

Description

Add new variables to the $fac and drop existing ones. See examples and ?dplyr::transmute.

Usage

transmute(.data, ...)

Arguments

.data
a Coo, Coe, PCA object
...
comma separated list of unquoted expressions

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, slice, subset.Coo

Examples

Run this code
olea
transmute(olea, id=factor(1:length(olea)))

Run the code above in your browser using DataLab