aggregateData {diskImageR}R Documentation

Averages photographs of the same type


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)



the short name in use for the project.


what type of variation measurment to perform. Currently supports varFunc = "se" to calculate the standard error, varFun = "cv" to calculate the coefficient of variation or any built-in R function (e.g., sd).


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 createDataframe this should be reflected here.


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


denotes whether to overwrite the existing .csv file or just update the .df in the R global environment. Defaults to TRUE.


A dataframe "" is saved to the global environment and a .csv file "projectName_ag.csv" is exported to the "parameter_files" directory.

See Also

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", varFunc= "sd", replicate = c("line", "drugAmt"), overwrite = FALSE)

## End(Not run)

[Package diskImageR version 1.0.0 Index]