[R] A sapply() funny.
Peter Dalgaard BSA
p.dalgaard at biostat.ku.dk
Mon Jun 16 09:23:56 CEST 2003
Rolf Turner <rolf at math.unb.ca> writes:
> try.f <- sapply(rvec,foo,X=X,cc=1/3) # This falls over.
>
> The error message is:
>
> Error in get(x, envir, mode, inherits) : variable "rvec" was not found
>
> How can ``rvec'' not be found? Is this one of the ``improvements''
> induced by the new namespace sorcery?
No. Take a look at args(sapply). Hint: There is no *function* called
rvec.
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-help
mailing list