Extract {CorrBin} | R Documentation |
Extract from a CBData or CMData object
Description
The extracting syntax works as for [.data.frame
, and in general the returned object is not a CBData
or CMData
object.
However if the columns are not modified, then the result is still a CBData
or CMData
object with appropriate attributes preserved,
and the unused levels of treatment groups dropped.
Usage
## S3 method for class 'CBData'
x[i, j, drop]
## S3 method for class 'CMData'
x[i, j, drop]
Arguments
x |
|
i |
numeric, row index of extracted values |
j |
numeric, column index of extracted values |
drop |
logical. If TRUE the result is coerced to the lowest possible dimension.
The default is the same as for |
Value
a CBData
or CMData
object
Author(s)
Aniko Szabo
See Also
CBData
, CMData
Examples
data(shelltox)
str(shelltox[1:5,])
str(shelltox[1:5, 2:4])
data(dehp)
str(dehp[1:5,])
str(dehp[1:5, 2:4])
[Package CorrBin version 1.6.1 Index]