HowManyOverTime | R Documentation |
Get an overall idea of how many endoscopies have been done for an indication by year and month. This is a more involved version of SurveilCapacity function. It takes string for the Indication for the test
HowManyOverTime(dataframe, Indication, Endo_ResultPerformed, StringToSearch)
dataframe |
dataframe |
Indication |
Indication column |
Endo_ResultPerformed |
column containing date the Endoscopy was performed |
StringToSearch |
The string in the Indication to search for |
This returns a list which contains a plot (number of tests for that indication over time and a table with the same information broken down by month and year).
Other Basic Analysis - Surveillance Functions:
SurveilFirstTest()
,
SurveilLastTest()
,
SurveilTimeByRow()
,
TimeToStatus()
# This takes the dataframe MyEndo (part of the package examples) and looks in # the column which holds the test indication (in this example it is called # 'Indication' The date of the procedure column(which can be date format or # POSIX format) is also necessary. Finally the string which indicates the text # indication needs to be inpoutted. In this case we are looking for all endoscopies done # where the indication is surveillance (so searching on 'Surv' will do fine). # If you want all the tests then put '.*' instead of Surv rm(list = ls(all = TRUE)) ff <- HowManyOverTime(Myendo, "Indications", "Dateofprocedure", ".*")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.