Skip to content
Prev 156651 / 398506 Next

fast value replacement in (numeric) vector

yes, yes! I'm out of my mind.
Thank you.

-----Original Message-----
From: hadley wickham [mailto:h.wickham at gmail.com] 
Sent: Saturday, September 20, 2008 5:49 PM
To: Ling, Gary (Electronic Trading)
Cc: r-help at r-project.org
Subject: Re: [R] fast value replacement in (numeric) vector


On Sat, Sep 20, 2008 at 4:41 PM, Ling, Gary (Electronic Trading)
<Gary_Ling at ml.com> wrote:
L[1] <- 0
L[n] <- 0

L[c(1, n)] <- 0

?

Hadley