aggregateCRT | R Documentation |
aggregateCRT
aggregates data from a "CRTsp"
object or trial data frame containing multiple records with the same location,
and outputs a list of class "CRTsp"
containing single values for each location, for both the coordinates and the auxiliary variables.
aggregateCRT(trial, auxiliaries = NULL)
trial |
An object of class |
auxiliaries |
vector of names of auxiliary variables to be summed across each location |
Variables that in the trial dataframe that are not included in auxiliaries
are retained in the output
algorithm "CRTsp"
object, with the value corresponding to that of the first record for the location
in the input data frame
A list of class "CRTsp"
{
trial <- readdata('example_site.csv')
trial$base_denom <- 1
aggregated <- aggregateCRT(trial, auxiliaries = c("RDT_test_result","base_denom"))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.