run_Labs: Run Lab Data

View source: R/modLabs.R

run_LabsR Documentation

Run Lab Data

Description

This module will load and modify laboratory data.

Usage

run_Labs(lab.path, lab.select, lab.mod.list)

Arguments

lab.path

filename of a lab file (CSV, RData, RDS), or data.frame

lab.select

columns to select

lab.mod.list

list of expressions giving modifications to make; passed to dataTransformation

Details

See EHR Vignette for Structured Data.

Value

lab data set

Examples

lab_data <- data.frame(mod_id=rep(1:3,each=3),
                       date=rep(c("01/12/17","05/05/18","11/28/16"),each=3),
                       time=rep(c("1:30","2:30","3:30"),3),
                       creat=rnorm(9,0.5,0.05))
run_Labs(lab_data, lab.mod.list=list(log_creat=expression(log(creat))))


EHR documentation built on Dec. 28, 2022, 1:31 a.m.