Additional arguments passed to or used by methods.
from.col, to.col
Names or indices of the columns in x containing the event endpoints. Values are swapped as needed to ensure that to > or = from on all rows. If NULL, to.col defaults to from.col + 1 (if column exists) or from.col.
Methods (by class)
numeric: Expands a numeric vector into two columns of event endpoints.
POSIXt: Coerces to numeric before dispatching.
Date: Coerces to numeric before dispatching.
matrix: Converts the matrix to a data frame, then calls the data.frame method.
data.frame: Renames from.col and to.col to "from" and "to" as needed. Since these column names must be unique, other columns cannot also be called "from" or "to".
See Also
events for creating event tables and read_events for reading files as event tables.