Learn R Programming

emil (version 1.1-6)

as.matrix.outcome: Convert outcome vector to matrix

Description

Convert outcome vector to matrix

Usage

## S3 method for class 'outcome':
as.matrix(x, ...)

Arguments

x
Outcome vector.
...
Ignored, kept for S3 consistency.

Value

  • The data frame underlying the outcome vector converted to a matrix. Event types are converted to integers.