View source: R/aggregateData.R
aggregateData | R Documentation |
Uses a user-supplied variance measure (currently supported: standard error, coefficient of variation, built-in R functions (e.g., sd) to calculate variance among photographs of the same type
aggregateData(
projectName,
varFunc = "se",
replicate = c("line", "type"),
overwrite = TRUE,
save = TRUE
)
projectName |
the short name in use for the project. |
varFunc |
what type of variation measurment to perform. Currently supports |
replicate |
a character vector indicating which the column names that contain which factors to use. Defaults to c("line", "type"). Note that if the typeVector name was changed in |
overwrite |
a logical value indicating whether to overwrite existing aggregate dataframe for the same project name. This allows you to save different dataframes averaging across different factors or using different variance measures |
save |
denotes whether to overwrite the existing .csv file or just update the .df in the R global environment. Defaults to TRUE. |
A dataframe "projectName.ag" is saved to the global environment and a .csv file "projectName_ag.csv" is exported to the "parameter_files" directory.
addType
if there multiple factors in your experiment. Add whatever the new factor is called (default: "type2") to the replicate vector if this is appropriate.
## Not run:
aggregateData("myProject")
aggregateData("myProject", varFunc= "sd", replicate = c("line", "drugAmt"), overwrite = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.