Skip to contents

This function allows filtering of a data.table using multiple match values – all cells that contain any of the match values will be filtered, and provided in a new data.table.

Usage

do.filter(dat, use.col, values)

Arguments

dat

NO DEFAULT. A data.table

use.col

DEFAULT = NULL. The column to use for re-ordering

values

DEFAULT = NULL. A vector of values to use for filtering – all cells that contain any of the match values will be filtered, and provided in a new data.table. Up to 20 match values can be provided

Author

Thomas M Ashhurst, thomas.ashhurst@sydney.edu.au