Skip to content

Search Archives

Search tips
from:Name Search by author name, e.g. from:Duncan Murdoch "exact phrase" Match an exact phrase word1 word2 Match messages containing both words Date range Use the date pickers to filter results to a time period

Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.

7 results for “from:Mike Spam”

effective way to return only the first argument of "which()"
Mike Spam · Sep 19, 2012 · r-help

Hi, Thanks Michael, but i think this is even slower. x <-sample(20000000) which(x < 5)[1] which.max(x < 5) system.time(for(i in 1:100) which.max(x < 5)) User System verstrichen 60.84 13.70 86...

effective way to return only the first argument of "which()"
Mike Spam · Sep 19, 2012 · r-help

Hi, I was looking for a function like "which()" but only returns the first argument. Compare: x <- c(1,2,3,4,5,6) y <- 4 which(x>y) returns: 5,6 which(x>y)[1] returns: 5 which(x...

Simple - Finding vector in a vector
Mike Spam · Oct 8, 2012 · r-help

Hi, just a simple question. Assumed i have a vector, FALSE TRUE TRUE TRUE FALSE TRUE FALSE TRUE FALSE or NA 1 1 1 NA 1 NA 1 NA what i need is the position where an element is the...

Simple - Finding vector in a vector
Mike Spam · Oct 8, 2012 · r-help

Hey Rui, Perfect! Thanks!! :) Nico 2012/10/8 Rui Barradas <ruipbarradas at sapo.pt>: > Hello, > > See ?rle > > Hope this helps, > > Rui Barradas > Em 08-10-2012 13:55, Mike Spam escreveu: >> >> Hi, >> >> just a simple question. >> Assumed i have a...

Simple - Finding vector in a vector
Mike Spam · Oct 8, 2012 · r-help

Sorry, i just realized, that it output the sum of all vectors. I can work with this function but it would be much faster and easier if it would be possible to get the positions of evry match. example: NA...

Simple - Finding vector in a vector
Mike Spam · Oct 8, 2012 · r-help

Great, works perfekt now! Thanks for your fast help! Nico 2012/10/8 David L Carlson <dcarlson at tamu.edu>: > Building on Jessica and Steve's use of embed: > >> X <- c(NA, 1, NA, 1, 1, 1, 1, 1, 1...

effective way to return only the first argument of "which()"
Mike Spam · Sep 20, 2012 · r-help

Thank you very much, especially Milan and Bert! I will do some speedtests and fit the function to my needs. I think the best way would be a modified function in C... But i am not familiar enough with C...

Can't find what you're looking for? Try searching with Google .