Re: [R] fast value replacement in (numeric) vector

2008-09-20 Thread Ling, Gary (Electronic Trading)
yes, yes! I'm out of my mind. Thank you. -Original Message- From: hadley wickham [mailto:[EMAIL PROTECTED] Sent: Saturday, September 20, 2008 5:49 PM To: Ling, Gary (Electronic Trading) Cc: r-help@r-project.org Subject: Re: [R] fast value replacement in (numeric) vector On Sat, S

Re: [R] fast value replacement in (numeric) vector

2008-09-20 Thread hadley wickham
On Sat, Sep 20, 2008 at 4:41 PM, Ling, Gary (Electronic Trading) <[EMAIL PROTECTED]> wrote: > Hi R users, > What is the fastest way to replace a(some) value(s) in a (numeric) > vector? > I checked ?replace, but its output is another vector. > 1) I wonder if there's any function to perform in-place

Re: [R] fast value replacement in (numeric) vector

2008-09-20 Thread Stefan Evert
On 20 Sep 2008, at 23:41, Ling, Gary (Electronic Trading) wrote: Hi R users, What is the fastest way to replace a(some) value(s) in a (numeric) vector? I checked ?replace, but its output is another vector. 1) I wonder if there's any function to perform in-place replacement? How about L[n] <-