Description Usage Arguments See Also Examples
View source: R/SimulateBreathID.R
Creates a simulated data record, computes several fit parameters, and appends these to the database
| 1 | 
| con | connection to sqlite database | 
ReadBreathId, SimulateBreathId,
CreateSimulatedBreathTestDatabase
| 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)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.