subset: Subsetting vector-like, matrix-like and data-frame-like...

Description Usage Arguments Value See Also Examples

Description

Return subsets of vector-like, matrix-like or data-frame-like objects which meet conditions.

NOTE: This man page is for the subset S4 generic function defined in the BiocGenerics package. See ?base::subset for the subset S3 generic defined in the base package.

Usage

1
subset(x, ...)

Arguments

x

A vector-like, matrix-like or data-frame-like object to be subsetted.

...

Additional arguments (e.g. subset, select, drop), for use in specific methods. See ?base::subset for more information.

Value

An object similar to x containing just the selected elements (for a vector-like object), or the selected rows and columns (for a matrix-like or data-frame-like object).

See Also

Examples

1
2
3
4
5
6
7
8
subset
showMethods("subset")
selectMethod("subset", "ANY")  # the default method

library(S4Vectors)
showMethods("subset")
selectMethod("subset", "DataTable")  # the "subset" method for
                                     # DataTable objects

nturaga/BiocGenerics documentation built on May 7, 2019, 11:15 a.m.