Skip to content
Prev 313769 / 398506 Next

simplifying code

On Dec 17, 2012, at 5:15 AM, Rui Barradas wrote:

            
That appears to be more complex than necessary. Even R-newbs should  
use vectorized approaches if they are easily available:


  cp <- output0*exp(-0.3*TIME1)

# If names are desired for those elements:

  names(cp) <- paste0("cp", 1:4)

--
David Winsemius, MD
Alameda, CA, USA