Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


m61r (version 0.0.3)

select: select columns of a data.frame

Description

Select columns of a data.frame.

Usage

select_(df, variable = NULL)

Arguments

df

data.frame

variable

formula that describes the selection

Value

select_() returns a data frame. Properties:

  • Only columns following the condtion determined by

  • variable appear.

  • Rows are not modified.

Examples

Run this code
# NOT RUN {
  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)
# }

Run the code above in your browser using DataLab