select | R Documentation |
Select columns of a data.frame.
select_(df, variable = NULL)
df |
data.frame |
variable |
formula that describes the selection |
select_()
returns a data frame.
Properties:
Only columns following the condtion determined by
variable appear.
Rows are not modified.
tmp <- select_(CO2,~Type)
head(tmp)
tmp <- select_(CO2,~c(Plant,Type))
head(tmp)
tmp <- select_(CO2,~-Type)
head(tmp)
tmp <- select_(CO2,variable=~-(Plant:Treatment))
head(tmp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.