[R] R2WinBugs data import error
unsown at gmail.com
Sun Dec 26 06:44:50 CET 2010
For some purpose, I need to transfer a NAs array to WinBugs through
R2WinBugs, But I constantly got an error message:"'type' must be "real" for
this format". Here is my data to transfer:
x = matrix(data=NA,nrow=3,ncol=3)
x = as.array(x)
data <- list ("x")
if I add a line to above setting, then I can pass R2WinBugs:
x[1,1] = 0
If I manually input the NA array to WinBugs, I could get it running. So my
original data set has no problem with WinBugs.
View this message in context: http://r.789695.n4.nabble.com/R2WinBugs-data-import-error-tp3164106p3164106.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help