View source: R/annual_recruitment.R
annual_recruitment | R Documentation |
secuTrial exports inherently contain the information on which participant was registered at which point in time. This function makes use of this property to show annual recruitment.
annual_recruitment(x, rm_regex = "")
x |
a |
rm_regex |
character - specifies a regular expression to be removed from the centre names in the legend. e.g. rm_regex = "\\(.*\\)$" will remove trailing brackets and their contents. |
a data.frame showing the annual recruitment counts per center
This function wraps plot_recruitment to retrieve the data.
# export location expot_loc <- system.file("extdata", "sT_exports", "lnames", "s_export_CSV-xls_CTU05_long_ref_miss_en_utf8.zip", package = "secuTrialR") # read export sT_export <- read_secuTrial(expot_loc) # plot recruitment annual_recruitment(sT_export) # show without trailing bracket annual_recruitment(sT_export, rm_regex = "\\(.*\\)$")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.