read.hemo: Read a hemo data file

Description Usage Arguments Details Value Author(s) See Also

Description

Read a hemo data file

Usage

1

Arguments

file

a connection or a character string giving the name of the file to load.

monitor

optional boolean, set to TRUE to print an indication of each line read.

debug

a flag that can be set to TRUE to turn on debugging.

Details

Each line of the data file is taken to be a recording of a reading from an instrument, or an event. Elements on these lines are separated with white space (space or tab). The first element is an identifier, the second is a date in the format YYYY-MM-DD, and the third is a time in the format HH:MM. After that, any number of values may be given.

At present, the only identifier recognized is BP, for blood pressure. This has three values following the time: the systolic pressure, in mm of Hg, the diastolic pressure in mm of Hg, and the pulse rate in beats per minute. For example, the line BP 2010-01-30 0806 110 80 55 indicates systolic and diastolic pressures of 110 and 80, respectively, and a pulse of 55 beats per minute.

Value

An object of class "hemo".

Author(s)

Dan Kelley

See Also

Objects of type hemo can be plotted with plot.hemo, and summarized with summary.hemo, both of which are generic functions.


dankelley/hemo documentation built on May 14, 2019, 4:09 p.m.