Subsetting a tbl_sample with [ preserves the tbl_sample class
and its sampling metadata when the essential column (.weight)
remains.
Usage
# S3 method for class 'tbl_sample'
x[i, j, ..., drop = FALSE]
Arguments
- x
A tbl_sample object
- i
Row index
- j
Column index
- ...
Additional arguments passed to the default method
- drop
Coerce to lowest possible dimension
Value
A tbl_sample if essential columns remain, otherwise a data.frame