powered by
Filter rows of a data.frame with conditions.
filter_(df, subset = NULL)
data.frame
formula that describes the conditions
The function returns an object of the same type as df. Properties:
df
Columns are not modified.
Only rows following the condtion determined by
subset appear.
Data frame attributes are preserved.
# NOT RUN { tmp <- filter_(CO2,~Plant=="Qn1") head(tmp) tmp <- filter_(CO2,~Type=="Quebec") head(tmp) # }
Run the code above in your browser using DataLab