Re: [R] importing data from BUGS format to R?

2006-02-24 Thread Martyn Plummer
On Fri, 2006-02-24 at 08:48 +0100, Uwe Ligges wrote: Gabor Grothendieck wrote: Just source the file: source(mywinbugsfile.R) head(y) ... and don't forget to transpose the matrix afterwards, if this was BUGS code. Uwe Ligges If this were a WinBUGS data file (or initial values

[R] importing data from BUGS format to R?

2006-02-23 Thread Jeffrey Moore
For those who use WinBUGS (or for those who are just familar with this format), I have a text file that looks like this (which is how R would export data if you used the structure function): y= structure(.Data= c(-6.93310E+01, 4.32870E+01, -6.96600E+01, 4.35730E+01, -6.90150E+01, 4.35870E+01,

Re: [R] importing data from BUGS format to R?

2006-02-23 Thread Gabor Grothendieck
Just source the file: source(mywinbugsfile.R) head(y) On 2/23/06, Jeffrey Moore [EMAIL PROTECTED] wrote: For those who use WinBUGS (or for those who are just familar with this format), I have a text file that looks like this (which is how R would export data if you used the structure

Re: [R] importing data from BUGS format to R?

2006-02-23 Thread Uwe Ligges
Gabor Grothendieck wrote: Just source the file: source(mywinbugsfile.R) head(y) ... and don't forget to transpose the matrix afterwards, if this was BUGS code. Uwe Ligges On 2/23/06, Jeffrey Moore [EMAIL PROTECTED] wrote: For those who use WinBUGS (or for those who are just