createEventNames: Create unique event names for each attribute of an event...

Description Usage Arguments Details Value Examples

Description

Event names serve as an unique event in SPM. This will merge agent and agent_detail into a new column, eventName Here, each attribute of an event type is stated in the event name. Events with continuous values will first discretized. (e.g., "tumorINCR", tumor volume is the event from agent column, and INCR is the attribute converted from agent_detail column.)

Usage

1
createEventNames(event, tType, removeChemo)

Arguments

tType

char, shortcut for type of tumor volume information

event:

dataframe, all events across all patients, each row is an event, returned from 'getData' in 'getData.R'

removeChemo:

bool, remove chemo event types

Details

event contains events as rows and at least the following columns:

Value

event: dataframe, cleaned and formated information that is ammendable to SPM

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
data("fake_data")
events <- fake_data$events
events$startdate <- as.Date(as.character(events$startdate), format='%Y-%m-%d')
events$enddate <- as.Date(as.character(events$enddate), format='%Y-%m-%d')

cleaned <- removeData(events)
cleaned <- resetEventIDsToDays(cleaned)
cleaned <- removePreRadiation(cleaned)

cleaned <- createEventNames(event=cleaned,
                            tType='r',
                            removeChemo=T)
                            

novasmedley/gbmSpm documentation built on May 17, 2019, 10:39 a.m.