| select | R Documentation |
Select variables by name, from the $fac. Selected variables
can also be renamed on the fly.
See examples and ?dplyr::select.
select(.data, ...)
.data |
a |
... |
comma separated list of unquoted expressions |
dplyr verbs are maintained.
a Momocs object of the same class.
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(),
slice(),
subsetize()
olea
select(olea, var, view) # drops domes and ind
select(olea, variety=var, domesticated_status=domes, view)
# combine with filter with magrittr pipes
# only dorsal views, and 'var' and 'domes' columns
filter(olea, view=="VD") %>% select(var, domes)
head(olea$fac)
# select some columns
select(olea, domes, view)
# remove some columns
select(olea, -ind)
# rename on the fly and select some columns
select(olea, foo=domes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.