[R] Errors in SIAR
mark_difford at yahoo.co.uk
Fri Nov 11 08:44:51 CET 2011
On Nov 11, 2011 at 1:06am Alex DJ wrote:
I haven't followed this thread closely (now split), but this most recent
request for help from you is very difficult to make sense of. I think we
need access to your data set. Further, there appear to be problems with the
function you are using in package siar, based on trying to run demos in
the package. (Though this may not be the issue.)
Two things you can try are the following: First, the function you are using
(siarmcmcdirichletv4) calls for matrices, not data frames (which you are
using). Usually this throws an error, so maybe this is not the problem.
Secondly, if you have a factor then you turn it into an ordered factor by
where myFactor is the name of the factor you want to convert to an ordered
factor. You can call the levels of your factor what you like. Here, reading
up on these functions, and trying the examples, would help you to help
yourself. Have you even looked at ?factor. The fact that you are new to R
really means that you should be reading everything about R that you can lay
your hands on. This will help you to ask sensible questions about things
that still puzzle you.
And if you want to convert a factor into a numeric then you have to do
This is all documented in R. Have you read the manual"An Introduction to R,"
which comes with R? There is also plenty of good documentation on how to use
R on the web and indeed on R`s homepage.
 R is case-sensitive: the package is called siar, not SIAR. Please
respect the author's designation.
Mark Difford (Ph.D.)
Nelson Mandela Metropolitan University
Port Elizabeth, South Africa
View this message in context: http://r.789695.n4.nabble.com/Errors-in-SIAR-tp4029804p4030667.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help