Description Usage Arguments Note Examples
create input for barca from a csvfile that has a particular structure
1 | makeBugsData(csvfile, prefix = "test", dodump = TRUE)
|
csvfile |
character(1) path to a CSV file with specific layout, see note |
prefix |
character(1) used to prefix ".jagsdata" for output |
dodump |
logical(1) if true, will write data in jags format to [prefix].jagsdata |
Some csv files used in this application had a 'Median' summary as last line. This must be removed.
1 2 3 4 5 6 7 | infile = system.file(paste0("csv/", "rewriteV", ".csv"), package="barca") # use existing test file
tdir = tempdir()
od = getwd()
setwd(tdir)
makeBugsData(infile)
readLines("test.jagsdata")
setwd(od)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.