[R] conv() example in R-exts

Robin Hankin rksh at soc.soton.ac.uk
Mon Nov 8 09:54:50 CET 2004


Hi

[I'm not sure if this is "intelligible to non-programmers" or not]

R-exts  (section 4.2) gives an example  of the .C() function whose 
third argument is

"as.integer(length(a))",

and urges the user to coerce all the arguments to the correct form 
(on pain of  "hard-to-catch errors"
which I now know to be very appropriate, if understated,  phrasing).

  The length()  function returns an integer, according to the helppage.

So, why does the argument above use as.integer()?



-- 
Robin Hankin
Uncertainty Analyst
Southampton Oceanography Centre
SO14 3ZH
tel +44(0)23-8059-7743
initialDOTsurname at soc.soton.ac.uk (edit in obvious way; spam precaution)




More information about the R-help mailing list