readEdfHeader {edfReader}R Documentation

Read EDF(+) or BDF(+) file header

Description

The function reads the header of an EDF (European Data Format) file, an EDF+ file, an BDF file, or an BDF+ file

Usage

readEdfHeader(fileName)

Arguments

fileName

The full path to the EDF(+)/BDF(+) file to be read.

Value

an object of class ebdfHeader

Details

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.

Acknowledgement

This package has used code from:

See Also

edfReader, readEdfSignals
For the vignette use the console command:
vignette('edfReaderVignette', package = "edfReader")
or click on Index below.

Examples

# 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

[Package edfReader version 1.2.1 Index]