Re: [R] R2WinBugs data import error

2010-12-26 Thread unsown
You solved my problem, thank you. As you said it's the type of the content in the matrix that caused the problem. I needed to put variable x along with other variables to the list, somehow it turned out that x must be used in form of character in the statement: dat <- list("x","otherVariables")

Re: [R] R2WinBugs data import error

2010-12-26 Thread David Winsemius
On Dec 26, 2010, at 12:44 AM, unsown wrote: 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) str(x) It is of mode "