| pick | R Documentation |
Reproduces the select argument of subset().
pick(data_object, expression)
data_object |
the data object |
expression |
an expression for selecting the columns |
a portion of the data object
# load data
data(nhanes)
# pick bpxosy1 and ridageyr
nhanes |> pick(c(bpxosy1, ridageyr))
# drop bpxosy1 and ridageyr
nhanes |> pick(-c(bpxosy1, ridageyr))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.