First, thank you for all the work on this package. I need some help running GGIR on data from the Empatica E4 for a study looking at the effect of sleep on
alcohol cravings.
When I use rmc.myacc.csv my output looks good, but when I use GGIR I get the following error:
13: `[.data.frame`(meta_temp, 1:(nrow(meta_temp) - 1), 2:7)
12: meta_temp[1:(nrow(meta_temp) - 1), 2:7]
11: is.data.frame(x)
10: rowSums(meta_temp[1:(nrow(meta_temp) - 1), 2:7] == meta_temp[2:nrow(meta_temp),
2:7])
9: which(rowSums(meta_temp[1:(nrow(meta_temp) - 1), 2:7] == meta_temp[2:nrow(meta_temp),
2:7]) == 3)
8: g.calibrate(datafile, params_rawdata = params_rawdata, params_general = params_general,
params_cleaning = params_cleaning)
7: main_part1(i, params_metrics, params_rawdata, params_cleaning,
params_general, datadir, fnames, fnamesfull, outputdir, myfun,
filelist, studyname, ffdone, tmp5, tmp6, use.temp, daylimit,
path3, outputfolder,
is.mv)
6: g.part1(datadir = datadir, outputdir = outputdir, f0 = f0, f1 = f1,
studyname = studyname, myfun = myfun, params_rawdata = params_rawdata,
params_metrics = params_metrics, params_cleaning = params_cleaning,
params_general = params_general)
5: GGIR(datadir = "C:/Users/neil_k/Downloads/GGIR/e4Tools/dataE4Tools",
outputdir = "C:/Users/neil_k/Downloads/GGIR/e4Tools/resultsE4Tools",
rmc.file = "1_GGIR_out.csv", rmc.sf = 32, rmc.col.time = 1,
rmc.unit.time = "UNIXsec", rmc.desiredtz = "America/New_York",
rmc.firstrow.acc = 20, rmc.col.acc = 2:4, rmc.unit.acc = "bits",
rmc.bitrate = 32, rmc.dynamic_range = 2, rmc.unsignedbit = FALSE,
rmc.col.temp = 5, rmc.unit.temp = "C", ) at e4ToolsScript.R#12
4: eval(ei, envir)
3: eval(ei, envir)
2: withVisible(eval(ei, envir))
1: source("c:\\Users\\neil_k\\Downloads\\GGIR\\e4Tools\\e4ToolsScript.R",
encoding = "UTF-8")
"device_brand" "E4" "" "" ""
"recording_ID" "1" "" "" ""
"device_serial_number" "A02D9B" "" "" ""
"N_subfiles" "A02D9B" "" "" ""
"timestamp_type" "unix_ms" "" "" ""
"timezone_tzdata_format" "America/New_York" "" "" ""
"acc_sample_rate" "32" "" "" ""
"acc_unit" "bits" "" "" ""
"acc_dynrange_plusmin_g" "2" "" "" ""
"acc_bit_resolution" "8" "" "" ""
"temp_sample_rate" "4" "" "" ""
"temp_units" "celsius" "" "" ""
"temp_range_min" "-40" "" "" ""
"temp_range_max" "115" "" "" ""
"temp_resolution" "0.2" "" "" ""
"starttime" "2021-07-14 19:26:21 EDT" "" "" ""
"" "" "" "" ""
"" "" "" "" ""
"" "" "" "" ""
"timestamp" "acc_x_bits" "acc_y_bits" "acc_z_bits" "temp"
"1626305181" "48" "-10" "40" "26.91"
"1626305181" "47" "-9" "37" "26.91"
"1626305181" "50" "-8" "36" "26.91"
"1626305181" "53" "-10" "40" "26.91"
"1626305181" "51" "-8" "36" "26.91"
"1626305181" "49" "-8" "35" "26.91"
...
#######
Any idea what's going wrong here?
Thank you for any help,
Neil