Skip to content
Back to formatted view

Raw Message

Message-ID: <x2n0gijx39.fsf@biostat.ku.dk>
Date: 2003-06-16T07:23:56Z
From: Peter Dalgaard
Subject: A sapply() funny.
In-Reply-To: <200306141957.h5EJvAtw019530@erdos.math.unb.ca>

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