Description Usage Arguments Details Value See Also Examples
"Get" or "Set" the values of the eventTime_num or
eventObserved_lgl slots of an object of class OmicsSurv.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19  | getEventTime(object, ...)
getEventTime(object) <- value
getEvent(object, ...)
getEvent(object) <- value
## S4 method for signature 'OmicsSurv'
getEventTime(object, ...)
## S4 replacement method for signature 'OmicsSurv'
getEventTime(object) <- value
## S4 method for signature 'OmicsSurv'
getEvent(object, ...)
## S4 replacement method for signature 'OmicsSurv'
getEvent(object) <- value
 | 
object | 
 An object of class   | 
... | 
 Dots for additional internal arguments (currently unused).  | 
value | 
 The replacement object to be assigned to the specified slot.  | 
These functions can be useful to set or extract the event time or
death indicator from an OmicsSurv object. However, we recommend
that users simply create a new, valid OmicsSurv object instead of
modifying an existing one. The validity of edited objects is checked with
the ValidOmicsSurv function.
The "get" functions return the objects in the slots specified:
getEventTime returns the eventTime_num vector object and
getEvent returns the eventObserved_lgl vector object. These
functions can extract these values from any valid OmicsSurv object.
The "set" functions enable the user to edit or replace objects in the
eventTime_num or eventObserved_lgl slots for any
OmicsSurv object, provided that the new values do not violate the
validity check of an OmicsSurv object. See "Details" for more
information.
1 2 3 4 5 6 7 8 9 10 11 12  |   data("colonSurv_df")
  data("colon_pathwayCollection")
  colon_Omics <- CreateOmics(
    assayData_df = colonSurv_df[, -(2:3)],
    pathwayCollection_ls = colon_pathwayCollection,
    response = colonSurv_df[, 1:3],
    respType = "survival"
  )
  getEventTime(colon_Omics)
  getEvent(colon_Omics)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.