Description Usage Arguments Details Value Examples
Discretize tumor volume.
1 | discretizeTumVols(tumorVols, tType)
|
tumorVols |
a dataframe of tumor volume, see Details |
tType |
char, abbrev. type of tumor data to use, see |
tumorVols
contains tumor measurement events as rows and at least the following columns:
iois = patient id, char
agent_detail = event attribute, i.e., measured tumor volume in mm3 char
startdate = event start datein the format 'YYYY-MM-DD', char
eventName = event name, char
A dataframe with original data in tumorVols
plus discretized volumes in eventName
column.
1 2 3 4 5 6 7 8 9 10 | data("fake_data")
vols <- fake_data$events[fake_data$events$agent=='measurement', ]
# format data
vols$startdate <- as.Date(as.character(vols$startdate), format='%Y-%m-%d')
vols$enddate <- as.Date(as.character(vols$enddate), format='%Y-%m-%d')
vols <- resetEventIDsToDays(vols)
vols <- removeData(vols) # get rid of excess details and empty or no data
vols_dist <- discretizeTumVols(vols, tType = 'rate')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.