Message-ID: <a06002000bdb4e02b700b@[139.166.242.29]>
Date: 2004-11-08T08:54:50Z
From: robin hankin
Subject: conv() example in R-exts
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)