Is there an existing way to import EDF files into R?

4.4k Views Asked by At

I have some European Data Format (EDF) files that I would like to import into R.

There are some Python libraries for parsing EDF files and the EDF spec is available, so I know it's possible, but I would avoid writing code if I could.

Does there already exist a facility for importing these kinds of files?

3

There are 3 best solutions below

0
On BEST ANSWER

I tried look for the same thing a while ago, but I couldn't find anything for R. I ended up using biosig Python module to convert edfs to ascii. There is also this edf2ascii-converter.

0
On
  1. Was looking for the same thing. Found this function written by Fabien Feschet - works well for my data. http://feschet.fr/?p=11

  2. Found another resource recently. This works very well. Need to download both read_edf.R and utilities.R https://github.com/bwrc/edf/tree/master/R

0
On

I guess there wasn't any package available at the time when the question was asked but now you could use edfReader:

https://cran.r-project.org/web/packages/edfReader/

https://github.com/Pisca46/edfReader