Skip to contents

Coerces the object into a data.frame containing just event times and status filtering for specific subjects If subjects is a list then an additional variable group will be added onto the dataset specifying which group the row belongs to.

Usage

# S3 method for class 'DataJoint'
subset(x, subjects, ...)

Arguments

x

(DataJoint)
object created by DataJoint().

subjects

(character or list)
subjects that you wish to subset the data.frame to contain. See details.

...

Not used.

See also

Examples

if (FALSE) { # \dontrun{
subjects <- c("SUB1", "SUB2", "SUB3", "SUB4")
subset(x, subjects)

groups <- list(
    "g1" = c("SUB1", "SUB3", "SUB4"),
    "g2" = c("SUB2", "SUB3")
)
subset(x, groups)
} # }