csvImport: support for importing separate CSV with fat format: one...

Description Usage Arguments Examples

View source: R/csvImport.R

Description

support for importing separate CSV with fat format: one record per individual

Usage

1
2
csvImport(gpath, ipath, spath, times = c(0, 10, 20, 30, 60, 90, 120),
  gfilt = force, ifilt = force, sfilt = force)

Arguments

gpath

character pathname of glucose data

ipath

character pathname of insulin data

spath

character pathname of sample-level data

times

numeric vector of observation times in minutes

gfilt

function that operates on glucose data accepting and returning data.frame as returned by read.csv

ifilt

function that operates on insulin data accepting and returning data.frame as returned by read.csv

sfilt

function that operates on sample data accepting and returning data.frame as returned by read.csv

Examples

1
2
3
4
5
6
pref = system.file("csv_example", package="ogttMetrics")
gpath = paste0(pref, "/glucBase.csv")
ipath = paste0(pref, "/insBase.csv")
spath = paste0(pref, "/sampBase.csv")
democ = csvImport(gpath, ipath, spath)
democ

vjcitn/ogttMetrics documentation built on May 3, 2019, 6:14 p.m.