nddspiro.read: Import and process spirometry data

Description Usage Arguments Details Value Author(s) Examples

View source: R/nddspiro.read.R

Description

Extracts spirometry data from ndd Easyware XML files

Usage

1
2
nddspiro.read(xmlfilename, indices = c("FEV1", "FVC", "FEV1_FVC", "PEFR"),
  traces = 2, accepted_only = TRUE, add_GLI = FALSE)

Arguments

xmlfilename

Character vector. Filename of the XML file to process.

indices

Optional. List of character vectors. The indices to be returned. Default is FEV1, FVC, FEV1FVC, PEFR. Possible values are "FEV1", "FEV6", "FVC", "FEV1_FVC", "PEFR", "FEF2575", "FET", "BEV", "EOTV", "VCmax"

traces

Integer. Optional. Results per test to be returned (in descending order from Rank 1). Default=2.

accepted_only

Optional. Boolean. If TRUE only "accepted" traces will be returned. Default=TRUE.

add_GLI

Optional. Boolean. If TRUE will add GLI 2012 reference ranges. Requires rspiro package. Default=FALSE.

Details

This is the only function you are likely to need. Can be used withrspiro from devtools::install_git(\"https://github.com/thlytras/rspiro.git\")

Value

Dataframe of test results

Author(s)

Jamie Rylance, jamie.rylance@lstmed.ac.uk

Examples

1
2
3
4
5
read.nddspiro("example.xml", traces=3)

read.nddspiro("example.xml", indices=c("FEV1", "FVC"))

read.nddspiro("example.xml", accepted_only=FALSE, add_GLI=TRUE)

jipp3r/nddspiro.R documentation built on May 27, 2019, 2 a.m.