Hi Vincent-
I hope all is well! I’m having an issue when trying to pass any arguments from read.myacc.csv to g.shell (which I think others are having as well).
Specifically, any CSV data I’m using (with or without header, etc.) works fine in read.myacc.csv. But, when I pass any arguments to g.shell, I get one of two errors at the first step.
Here is the most basic code I’m using:
g.shell.GGIR(rmc.firstrow.acc = 1,
rmc.col.acc = 2:4,
rmc.col.temp = 5,
rmc.col.time=1,
rmc.unit.acc = "g",
rmc.unit.temp = "C",
rmc.unit.time = "POSIX",
rmc.format.time = "%Y-%m-%d %H:%M:%OS",
rmc.bitrate = c(),
rmc.origin = "1970-01-01",
rmc.desiredtz = "America/New_York",
rmc.col.wear = c(),
rmc.doresample=FALSE,
mode=c(1),
datadir=info.save.path,
outputdir=path.output,
#do.report=c(2,4,5),
studyname = "test",
overwrite = FALSE,
rmc.sf=32)
When I run this code, I get this error:
[1] "object 'temperaturecolumn' not found"
I’m not sure what’s causing the error. But, when I set rmc.col.temp to the default ( rmc.col.temp = c()). I no longer get the error, but instead get this:
[1] "replacement has length zero"
$call
data_processed[which(is.na(data_processed[, j]) == T), j] <- data_processed[p1[length(p1)],
j]
I’ve actually never been able to get any generic csv data (beyond the tests we ran on small files in 2019) to work with GGIR, so I wonder if it’s a low-level bug with something being named incorrectly, etc.
Is there something simple I’m missing? I’m happy to adapt any helper functions to create CSV files that work better with GGIR.
Thanks!
Evan
--You received this message because you are subscribed to the Google Groups "R package GGIR" group.To unsubscribe from this group and stop receiving emails from it, send an email to RpackageGGIR...@googlegroups.com.To view this discussion on the web, visit https://groups.google.com/d/msgid/RpackageGGIR/4234faa1-c47a-44a0-8b2a-d17a9ea85561n%40googlegroups.com.