DatFiles-class: A class representing one or more .dat files

Description Details Slots

Description

This class is used to read data from one or several .dat files. Because the .dat files are binary files, you can't read them with the usual read functions within R. If several dat files are set in an object, they are treated as though they are a single file.

Details

Dat files have a very simple organisation. Each data point has 2 bytes. There is no header. The data from sample 0 appear first, then sample 1, etc. If c is for channel and s is for sample, a file with 3 channel would look like this s0c0, s0c1, s0c2, s1c0, s1c1, s1c2, s2c0, s2c1, s2c2, etc.

Slots

fileNames

A character vector containing the names of the files

path

The directory in which the files are located

samples

Numeric vector with the number of samples in each file.

size

Numeric vector with the size of the file in bytes

nChannels

Number of recorded channels in the dat files


kevin-allen/relectro documentation built on May 20, 2019, 9:06 a.m.