Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

epi.RtoBUGS

R to WinBUGS data conversion


Description

Writes data from an R list to a text file in WinBUGS-compatible format.

Usage

epi.RtoBUGS(datalist, towhere)

Arguments

datalist

a list (normally, with named elements) which may include scalars, vectors, matrices, arrays of any number of dimensions, and data frames.

towhere

a character string identifying where the file is to be written.

Details

The function doesn't check to ensure that only numbers are being produced. In particular, factor labels in a dataframe will be output to the file, which normally won't be desired.

Author(s)

Terry Elrod (terry.elrod@ualberta.ca), Kenneth Rice.

References

Best, NG. WinBUGS 1.3.1 Short Course, Brisbane, November 2000.


epiR

Tools for the Analysis of Epidemiological Data

v2.0.19
GPL (>= 2)
Authors
Mark Stevenson <mark.stevenson1@unimelb.edu.au> and Evan Sergeant <evansergeant@gmail.com> with contributions from Telmo Nunes, Cord Heuer, Jonathon Marshall, Javier Sanchez, Ron Thornton, Jeno Reiczigel, Jim Robison-Cox, Paola Sebastiani, Peter Solymos, Kazuki Yoshida, Geoff Jones, Sarah Pirikahu, Simon Firestone, Ryan Kyle, Johann Popp, Mathew Jay and Charles Reynard.
Initial release
2021-01-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.