csv2jags: convert CSV in a specific format to a jagsdata file

Description Usage Arguments Examples

View source: R/csv2jags.R

Description

convert CSV in a specific format to a jagsdata file

Usage

1
csv2jags(type, package = "barca", dodump = TRUE)

Arguments

type

character string in c("TypeIII", "TypeIa", "TypeV")

package

name of package in which the file will be found under csv/ in installed folder

dodump

logical indicating that the base::dump function will be used to create a .jagsdata file, with prefix given by the value of type

Examples

1
2
3
4
5
od = getwd()
setwd(tempdir())
csv2jags("TypeV")
readLines("TypeV.jagsdata")
setwd(od)

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