AddSimulatedBreathTestRecord: Adds simulated breath test record to the database

Description Usage Arguments See Also Examples

View source: R/SimulateBreathID.R

Description

Creates a simulated data record, computes several fit parameters, and appends these to the database

Usage

1

Arguments

con

connection to sqlite database

See Also

ReadBreathId, SimulateBreathId, CreateSimulatedBreathTestDatabase

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# This example does the same as the function \code{CreateSimulatedBreathTestDatabase}
if (exists("con"))
  suppressWarnings(dbDisconnect(con))
sqlitePath = tempfile(pattern = "Gastrobase", tmpdir = tempdir(), fileext = ".sqlite")
unlink(sqlitePath)
CreateEmptyBreathTestDatabase(sqlitePath)
con = OpenSqliteConnection(sqlitePath)
add = try (
  for (i in 1:10)
    AddSimulatedBreathTestRecord(con),silent = TRUE)
dbDisconnect(con)

dmenne/d13cbreath documentation built on March 1, 2020, 3:41 a.m.