[Rd] type of list elements in .Call
Barry Rowlingson
B.Rowlingson at lancaster.ac.uk
Mon Jan 31 16:13:05 CET 2005
> as I would expect. I thought that if the vectors in the list could be
> regarded as integer vectors, they would be coerced appropriately, but
> apparently not. Is there any way I can tell R to regard them as integer
> vectors?
Change:
.Call("printlst", list(c(1,2),c(3,4)))
To:
.Call("printlst", list(as.integer(c(1,2)),as.integer(c(3,4))))
Baz
More information about the R-devel
mailing list