ldb: Imports data from a lout database as an R list object

View source: R/luna.R

ldbR Documentation

Imports data from a lout database as an R list object

Description

Imports the contents of a lout database

Usage

ldb(dbfile, ids = character(0))

Arguments

dbfile

the name of a lout database

ids

(optional) if ids is a vector of individual/EDF IDs, then only these individuals will be extracted from the database

Value

a named-list R object, in the same format as leval()

Note

As noted, the returned value is in the same format as is generated by leval() and can be parsed with lx() and lid().

Examples

## Not run: 
> k <- ldb("out.db")
read data on 3 individuals

> k
$HEADERS
$HEADERS$BL
      ID    NR NS REC.DUR TOT.DUR.HMS TOT.DUR.SEC
1 nsrr01 40920 14       1    11:22:00       40920
2 nsrr02 35850 14       1    09:57:30       35850
3 nsrr03 40920 14       1    11:22:00       40920

$HEADERS$CH
       ID       CH  DMAX   DMIN PDIM   PMAX    PMIN  SR
1  nsrr01 ABDO RES   127   -128       -1.00    1.00  10
2  nsrr02 ABDO RES   127   -128       -1.00    1.00  10
3  nsrr03 ABDO RES   127   -128       -1.00    1.00  10
4  nsrr01  AIRFLOW   127   -128       -1.00    1.00  10
5  nsrr02  AIRFLOW   127   -128       -1.00    1.00  10
6  nsrr03  AIRFLOW   127   -128       -1.00    1.00  10
7  nsrr01      ECG   127   -128   mV   1.25   -1.25 250
8  nsrr02      ECG   127   -128   mV   1.25   -1.25 250
9  nsrr03      ECG   127   -128   mV   1.25   -1.25 250
10 nsrr01      EEG   127   -128   uV 125.00 -125.00 125
11 nsrr02      EEG   127   -128   uV 125.00 -125.00 125
12 nsrr03      EEG   127   -128   uV 125.00 -125.00 125
...(continued)...

## End(Not run)


remnrem/luna documentation built on June 1, 2025, 2:14 p.m.