Takes a Dataset object and a logical expression and returns a Dataset with only the samples that meet the logical expression criteria
# S3 method for Dataset subset(x, subset, drop = FALSE, clean = FALSE)
x | A |
---|---|
subset | Expression indicating samples to subset. See subset in subset |
drop | Logical indicating whether to drop variable levels that disappear. |
clean | Logical indicating whether to use the clean function on the resulting dataset prior to returning it. |
A Dataset object
If the logical expression evaluation returns an NA value, it is considered equivalent to FALSE