Skip to content

Error in find_dam_first_last_lines() #45

@mantouyangmeng

Description

@mantouyangmeng

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, stop_datetime, : 
         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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions