wadpac / GGIRread

Functions for reading accelerometer data files
https://CRAN.R-project.org/package=GGIRread
Apache License 2.0
5 stars 3 forks source link

Alternative way to extract sample frequency from .wav file #26

Closed vincentvanhees closed 1 year ago

vincentvanhees commented 1 year ago

Expand readWav() header extraction of the .wav file:

H = tuneR::readWave(datafile,from = 1, to = 10,units = c("seconds"), header = TRUE)
sf = H$sample.rate

Next, add this sf as an extra element to the header output.