An R package to format data.frames and lists of data for input to JAGS, WinBUGS and OpenBUGS