rethomics / damr

Read TriKinetics' DAM data in R
http://rethomics.github.io
6 stars 7 forks source link

Error in find_dam_first_last_lines() #45

Open mantouyangmeng opened 7 months ago

mantouyangmeng commented 7 months ago

My code is like this

install.packages(c('ggetho', 'damr'))

rm(list = ls()) getwd()

add work directory

DATA_DIR <- "D:/Sleep Practice"

show work directory

list.files(DATA_DIR, pattern= ".txt|.csv")

make work directory

setwd(DATA_DIR)

build damr metadata

library(damr) library(behavr) metadata <- fread("metadata.csv") metadata metadata <- link_dam_metadata(metadata, result_dir = DATA_DIR) metadata dt2 <- load_dam(metadata) summary(dt)

In the load_dam() step it shows that there is an error and that there is no suitable data _Error in find_dam_first_last_lines(path, start_datetime, stopdatetime, :           No data in selected date range

### I would like to know why this line of code is not executing properly, is it because of a problem with the time formatting in the table? How can I fix this problem?

damr_tutorial.zip

mantouyangmeng commented 7 months ago

image