A sapply() funny.
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