search for: fishkbob

Displaying 3 results from an estimated 3 matches for "fishkbob".

2010 Aug 12
3
find value between two other numbers?
So basically I want to do this - 4 %in% 1:10 should return true Would there be another way of doing this without having to do the 1:10 part? I am using a very large data set and trying to do 459124 %in% 103000:983000 multiple times for many values, and it is taking quite a long time Also, I would like to vary the x:y part, so I can't even make an object that is c(x:y) and do a
2010 Aug 12
5
how to eliminate an element of a list
Hi, I want to eliminate an element of a list: list <- seq(1,5,1) s <- sample(list,1) lets say s=3 Now I want to remove 3 from the list: list2 = {1,2,4,5} Can someone give me a tip? Thanks, André [[alternative HTML version deleted]]
2010 Aug 13
4
merge function in R?
So I have a bunch of c(start,end) points and want to consolidate them into as few c(start,end) as possible. For example: sample start end A 5 10 B 7 18 C 1 4 D 16 20 I'd want the function to return the two distinct sets (1,4) and (5,20) Is there an R function that already does this? or should I write my own?