readEdfHeader {edfReader} | R Documentation |
The function reads the header of an EDF (European Data Format) file, an EDF+ file, an BDF file, or an BDF+ file
readEdfHeader(fileName)
fileName |
The full path to the EDF(+)/BDF(+) file to be read. |
an object of class ebdfHeader
The object returned contains also an object of class ebdfSHeaders.
Both objects ebdfHeader and ebdfSHeaders have supporting S3 print and summary functions.
For object details see the package vignette.
This package has used code from:
edf.R version 0.3 (27-11-2013), http://feschet.fr/?p=11
the work of Henelius Andreas as of July 2015, https://github.com/bwrc/edf
edfReader
, readEdfSignals
For the vignette use the console command:
vignette('edfReaderVignette', package = "edfReader")
or click on Index
below.
# Examples from the vignette libDir <- system.file ("extdata", package="edfReader") # a continuous recording CFile <- paste (libDir, '/edfPlusC.edf', sep='') CHdr <- readEdfHeader (CFile) CHdr # print the header summary (CHdr) # print a header summary str (CHdr) # look to the details CHdr$sHeaders # print the signal headers summary(CHdr$sHeaders) # print a signal headers summary str(CHdr$sHeaders) # look to the signal header details # for a discontinuous recording DFile <- paste (libDir, '/bdfPlusD.bdf', sep='') # and proceed as above to read the header and to show the results