Extract: Extract from a CBData or CMData object

Description Usage Arguments Value Author(s) See Also Examples

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

1
2
3
4
5
## S3 method for class 'CBData'
x[i, j, drop]

## S3 method for class 'CMData'
x[i, j, drop]

Arguments

x

CMData object.

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 [.data.frame: to drop if only one column is left, but not to drop if only one row is left.

Value

a CBData or CMData object

Author(s)

Aniko Szabo

See Also

CBData, CMData

Examples

1
2
3
4
5
6
7
data(shelltox)
str(shelltox[1:5,])
str(shelltox[1:5, 2:4])

data(dehp)
str(dehp[1:5,])
str(dehp[1:5, 2:4])

CorrBin documentation built on May 2, 2019, 4:46 p.m.