R2OpenBUGS::bugs(..)

Hi guys, I have problem using R2OpenBUGS::bugs(..) to run spatial datas. It returns this error: Error in FUN(X[[i]], ...) : invalid first argument. Help.

I think we need to see your code and perhaps some sample data.
Copy the code and paste it here between

```

````

This gives us formatted code that we can copy, paste and run . Often a person here does not have the time to type out code to test it and find a problem.

A handy way to supply data is to use the dput() function. Do dput(mydata) where "mydata" is the name of your dataset. For really large datasets probably dput(head(mydata, 100). Paste it here between

```

```
You may also find this helpful.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.