Processing without resampling

58 views
Skip to first unread message

Scott Small

unread,
Apr 2, 2021, 10:12:49 AM4/2/21
to R package GGIR
Hi All. Just curious if there is a way to process data without first undergoing the resampling process (ie. something to the effect of do.resampling=FALSE)?

Vincent van Hees

unread,
Apr 5, 2021, 7:52:30 AM4/5/21
to Scott Small, R package GGIR
Hi Scott,

This is not possible at the moment.
The next processing steps in GGIR requires as input a time series with constant sampling frequency. It would require substantial code modifications to make GGIR skip the resampling.

Best regards, Vincent


Dr. Vincent van Hees
Independent consultant

ACCELTING.png



‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Friday 2 April 2021 16:12, Scott Small <sma...@gmail.com> wrote:

Hi All. Just curious if there is a way to process data without first undergoing the resampling process (ie. something to the effect of do.resampling=FALSE)?


--
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.

Po Liu

unread,
Dec 14, 2021, 6:02:57 PM12/14/21
to R package GGIR
Hi all, 


Where can I find information on how GGIR resamples the data? 
Have scoured the pdf document but cannot see when and how GGIR resamples the input data automatically. 


Warm regards, 
Po

ben_m...@hotmail.com

unread,
Dec 15, 2021, 5:38:11 AM12/15/21
to R package GGIR
Hi Po,

Depending on your level of competency with R, I would just go straight to the repo code. For example, you can see a lot of this here: https://github.com/wadpac/GGIR/blob/master/R/g.getmeta.R 

Kind regards,
Ben

Vincent van Hees

unread,
Dec 15, 2021, 8:21:05 AM12/15/21
to Po Liu, R package GGIR
Hi Po,

GGIR resamples data for :
- Axivity .cwa format
- movisens,
- ad-hoc .csv format which are .csv files that do not relate to Actigraph
- When external function embedding is used (not by default) where the user indicates that resampling is needed.

For all other data formats no resampling is done.

As you may have seen in the documentation for the resample function in https://cran.r-project.org/web/packages/GGIR/GGIR.pdf, the default resampling method is linear (type=1), while the alternative would be nearest neightbour (type = 2). The code of the resampling function is here: https://github.com/wadpac/GGIR/blob/master/src/resample.cpp

One way to figure when a function like resample is used inside GGIR is to search for it via the GitHub repository. Go to: https://github.com/wadpac/GGIR, type resample in the search file, click 'In this repository'. Findings that end with .Rd are documentation files. Everywhere where you see ' resample( ' the resample function is being called.

Best,

Vincent

Dr. Vincent van Hees | Independent consultant | https://accelting.com/
image


‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
Reply all
Reply to author
Forward
0 new messages