mco_load_stays {drdR} | R Documentation

## Load MCO stays from RSS, GRP, RSA (and FICHCOMP) files

### Description

Load MCO stays from RSS, GRP, RSA (and FICHCOMP) files

### Usage

    mco_load_stays(filenames)

### Arguments

`filenames` | Paths of filenames to load stays (and FICHCOMP data) from.

### Details

You can pass multiple filenames. To load FICHCOMP files, pass them as additional filenames, they must use a .txt extension.

Supported file formats: RSS (.rss), GRP (.grp) and RSA (.rsa).

### Value

A list containing three data.frames: l$stays, l$diagnoses and l$procedures. A sorted id column links all three together.

### Examples

    l <- mco_load_stays('/path/to/stays.rss')

    head(l$stays)
    head(l$diagnoses)
    head(l$procedures)

[Package drdR version 2020.09.21 Index]