# define image directory
wd_images_ID <- system.file("pictures/sample_images", package = "camtrapR")
file.copy(from = wd_images_ID, to = getwd(), recursive = TRUE)
wd_images_ID_copy <- paste(getwd(), "sample_images", sep = "/")
data(timeShiftTable)
timeshift_run <- TimeShiftImages(inDir = wd_images_ID_copy,
TimeShiftTable = timeShiftTable,
stationCol = "Station",
hasCameraSubfolders = FALSE,
TimeShiftColumn = "timeshift",
TimeShiftSignColumn = "sign",
undo = FALSE
)
timeshift_undo <- TimeShiftImages(inDir = wd_images_ID_copy,
TimeShiftTable = timeShiftTable,
stationCol = "Station",
hasCameraSubfolders = FALSE,
TimeShiftColumn = "timeshift",
TimeShiftSignColumn = "sign",
undo = TRUE
)
Run the code above in your browser using DataLab