Description Usage Arguments Details Examples
View source: R/doCalibration.R
Function to provide an easy interface to use the calibation methods in the loggercal package
1 | doCalibration(path = ".", nsim = 999, trim = FALSE)
|
path |
the location on disk where the calibration folders are initially searched for (the default where the directory selection dialogue opens). |
nsim |
number of simulations to run (see |
trim |
if TRUE the user can trim internal logger data at the start and end of the data series interactively (default = FALSE) |
When running the function the user will be asked to set various directorise where internal and external calibration data are stored: internalCalDir = the filepath of where the internal calibration file is located externalCalDir = the filepath of where the external calibration file is located which is appropriate for the internal calibration that you are working on
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ## Not run:
# set up a demo calibration folder structure
# please set this to a suitable location on your system
path <- "D:\\temp\\Calibration_data"
caldir <- file.path(path, "Logger_calibrations", "250416")
ukasdir <- file.path(path, "External_Calibrations", "010915")
dir.create(caldir, recursive = TRUE)
dir.create(ukasdir, recursive = TRUE)
file.copy(
system.file(
"calibration_files", "FullCalibration_250416.csv",
package = "loggercal"),
caldir)
file.copy(
system.file(
"calibration_files", "UKASCalibration_319151.csv",
package = "loggercal"),
ukasdir)
doCalibration(path, nsim = 10)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.