Thank you all very much for your time and suggestions. The link to
stackoverflow was very helpful. Here are some timings in case someone wants to
know. (I noticed that microbenchmark results vary, depending on how many
functions one tries to benchmark at a time. However, the "min" stays about t
Software
wdunlap tibco.com
> -Original Message-
> From: Martin Morgan [mailto:mtmor...@fhcrc.org]
> Sent: Friday, April 26, 2013 1:33 PM
> To: William Dunlap
> Cc: lcn; Mikhail Umorin; r-help@r-project.org
> Subject: Re: [R] speed of a vector operation question
>
> A ver
Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
Behalf
Of lcn
Sent: Friday, April 26, 2013 12:09 PM
To: Mikhail Umorin
Cc: r-help@r-project.org
Subject: Re: [R] speed of a vector operation question
), as.vector(r2))
[1] TRUE
Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
> Behalf
> Of lcn
> Sent: Friday, April 26, 2013 12:09 PM
> To: Mikhail Umorin
> Cc: r-
I think the sum way is the best.
On Fri, Apr 26, 2013 at 9:12 AM, Mikhail Umorin wrote:
> Hello,
>
> I am dealing with numeric vectors 10^5 to 10^6 elements long. The values
> are
> sorted (with duplicates) in the vector (v). I am obtaining the length of
> vectors such as (v < c) or (v > c1 & v
5 matches
Mail list logo