# Set data folder first
withr::with_dir(system.file("extdata", package = "gmoTree"), {
# Import all oTree files in this folder and its subfolders
oTree <- import_otree()
})
# Show all Time column names
print(colnames(oTree$Time))
# Run function
oTree <- messy_time(oTree, combine = TRUE)
# Show all Time column names again
print(colnames(oTree$Time))
Run the code above in your browser using DataLab