powered by
opens connection to a file
ReadFile( file = NULL, path = "models/", package = "bfw", type = "string", sep = ",", data.format = "txt", custom = FALSE )
name of file, Default: NULL
path to file, Default: 'models/'
choose package to open from, Default: 'bfw'
Type of file (i.e., text or data), Default: 'string'
symbol to separate data (e.g., comma-delimited), Default: ','
define what data format is being used, Default: 'csv'
logical, indicating whether or not to use custom file, , Default: FALSE
read.csv
# NOT RUN { # Print JAGS model for bernoulli trials cat(ReadFile("stats_bernoulli")) # model { # for (i in 1:n){ # x[i] ~ dbern(theta) # } # theta ~ dunif(0,1) # } # }
Run the code above in your browser using DataLab