makeBugsData: create input for barca from a csvfile that has a particular...

Description Usage Arguments Note Examples

Description

create input for barca from a csvfile that has a particular structure

Usage

1
makeBugsData(csvfile, prefix = "test", dodump = TRUE)

Arguments

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

Note

Some csv files used in this application had a 'Median' summary as last line. This must be removed.

Examples

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)

vjcitn/barca documentation built on June 16, 2020, 11:18 p.m.