Skip to content
Prev 21365 / 63424 Next

often unnecessary duplicate in sapply / as.vector

On Fri, 7 Jul 2006, Martin Morgan wrote:

            
That looks reasonable.
This isn't a trivial change, because  mode(x)==mode does not guarantee 
that as.vector(x, mode) has no effect.  For example, with mode="numeric" it 
removes attributes.


         -thomas

Thomas Lumley			Assoc. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle