Names attribute must be the same length as vector

100 views
Skip to first unread message

Cory Scott

unread,
Sep 30, 2020, 10:59:13 AM9/30/20
to R package GGIR
Hello GGIR users,

I have been reading numerous articles on data processing and decided to give GGIR a try.  I am a novice. Before moving to larger files, I wanted to make an attempt on a shorter (approx 60 min) duration file to get use to the program and get all of the kinks out.  When I try to process a file with the GGIR shell function, I get this message: 


I have also attached the file I am trying to process.  I assume the first error is causing a cascade of other errors, but I cannot figure out what the 'names' attribute and vector length are. 

Thank you for the help!
Cory Scott
TAS1E23150705 (2017-11-15)RIGHTRAW.csv

Cory Scott

unread,
Sep 30, 2020, 11:01:25 AM9/30/20
to R package GGIR
If the image does not show up, here is the error message.

Part 1

Checking that user has read access permission for all files in data directory: Yes
Checking that user has write access permission for directory specified by argument outputdir: Yes

 Busy processing ... see C:/Dissresults/output_mydata/meta/basic for progress

Errors and warnings for TAS1E23150705 (2017-11-15)RIGHTRAW.csv$message
[1] "'names' attribute [8] must be the same length as the vector [7]"

$call
names(spheredata) <- c("Euclidean Norm", "meanx", 
    "meany", "meanz", "sdx", "sdy", "sdz", 
    "temperature")


Vincent van Hees

unread,
Sep 30, 2020, 11:20:50 AM9/30/20
to Cory Scott, R package GGIR
Hi Scott,

My advise would be to start with example multi-day recordings, for example this one:
You will have to unzip it, and the .cwa file inside is the datafile.

GGIR is not designed for recordings that last < 24 hours, because such recordings are usefully considered too short in physical activity and sleep research.

However, if you specify g.shell.GGIR input argument windowsizes = c(5,600,600) GGIR should be able to process the short recording with it's first part which is where the key signal features are extracted. This could be useful for lab-studies.

Vincent

Dr. Vincent van Hees
Independent consultant

ACCELTING.png



‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
--
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.

Cory Scott

unread,
Sep 30, 2020, 11:42:41 AM9/30/20
to R package GGIR
Hi Dr. van Hees,

I tried the longitudinal_data.cwa file and get this error message: 


Errors and warnings for longitudinal_data.cwa$message
[1] "non-numeric argument to binary operator"

$call
-shift/frequency

I am using version 4.0.2.

Vincent van Hees

unread,
Sep 30, 2020, 12:28:16 PM9/30/20
to Cory Scott, R package GGIR
It looks like GGIR is not able to handle that demo file anymore. GGIR runs fine on similar data from other projects, so I suspect that this is either an old format or the file somehow got corrupted. I just had a quick look and I expect that this will be easy to fix. I will post an update on this soon.
Vincent


‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

Cory Scott

unread,
Oct 7, 2020, 11:43:42 AM10/7/20
to R package GGIR
I've tried another file and still cannot get it to properly work. The issue I have now is the shell function only puts out a "busy processing". See below.  Is there another step I need to take from here to have the various parts load?

Thanks,


Part 1

Checking that user has read access permission for all files in data directory: Yes
Checking that user has write access permission for directory specified by argument outputdir: Yes

 Busy processing ... see C:/Dissresults/output_mydata/meta/basic for progress

______________________________________________________________________________________________________________________________
Part 2

 Busy processing ... see C:/Dissresults/output_mydata/ms2 for progress

______________________________________________________________________________________________________________________________
Part 3

 Busy processing ... see C:/Dissresults/output_mydata/ms3 for progress

______________________________________________________________________________________________________________________________
Part 4
 1
______________________________________________________________________________________________________________________________
Part 5

 Busy processing ... see C:/Dissresults/output_mydata/ms5 for progress


Vincent van Hees

unread,
Oct 8, 2020, 1:35:08 PM10/8/20
to Cory Scott, R package GGIR
Ok, it looks like there is minor variation in cwa-file format the code did not account for. In the next CRAN release of GGIR I will integrate this fix, probably December. As an intermediate solution you can install GGIR's beta version with the fix by following the steps below:

Step 1: Remove GGIR

Step 2: Install package devtools

Step 3: Restart R(Studio)

Step 4: Run the code below.

library(devtools)
devtools::install_github("wadpac/GGIR", ref = "issue361_axivitydemofile")
library(GGIR)

Let me know if you continue to have problems with this.
Thanks, Vincent

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

Reply all
Reply to author
Forward
0 new messages