filter: filter a data.frame

filterR Documentation

filter a data.frame

Description

Filter rows of a data.frame with conditions.

Usage

filter_(df, subset = NULL)

Arguments

df

data.frame

subset

formula that describes the conditions

Value

The function returns an object of the same type as df. Properties:

  • Columns are not modified.

  • Only rows following the condtion determined by

  • subset appear.

  • Data frame attributes are preserved.

Examples


tmp <- filter_(CO2,~Plant=="Qn1")
head(tmp)

tmp <- filter_(CO2,~Type=="Quebec")
head(tmp)


pv71u98h1/m61r documentation built on Oct. 20, 2024, 6:29 p.m.