Re: [R] Question about searchTwitter{twitteR}

2014-09-11 Thread Cory N
You are only able to search twitter history for a short period of time. gnip.com and similar companies offer historical tweets for sale. cn On Sunday, September 7, 2014 9:21:34 AM UTC-5, Axel Urbiz wrote: > > Hello, > > The function searchTwitter() with the arguments supplied as below would >

Re: [R] lanyrd site for useR! 2012

2012-04-28 Thread cory n
I signed up. I'm doing a talk on real time text classification using node.js and R Cory On Saturday, April 28, 2012 2:20:08 PM UTC-5, Barry Rowlingson wrote: > > There's now a page on lanyrd ("the social conference directory") for > useR! 2012 in Nashville: > > http://lanyrd.com/2012/useR/

[R] socket connection in while(TRUE) loop the best way?

2012-03-09 Thread cory n
I'm accessing R via a socket connection. I set up a connection using socketConnection and then use readLines inside of a while(TRUE) loop to listen for activity. Is that the best way of doing this sort of activity? It works, that's not the issue, I am just wondering if there's a better way. Tha

[R] sample() issue

2010-12-20 Thread cory n
> length(sample(25000, 25000*(1-.55))) [1] 11249 > 25000*(1-.55) [1] 11250 > length(sample(25000, 11250)) [1] 11250 > length(sample(25000, 25000*.45)) [1] 11250 So the question is, why do I get 11249 out of the first command and not 11250? I can't figure this one out. Thanks Cory [[

[R] avoid a loop

2010-11-04 Thread cory n
Let's suppose I have userids and associated attributes... columns a and b a <- c(1,1,1,2,2,3,3,3,3) b <- c("a","b","c","a","d","a", "b", "e", "f") so a unique list of a would be id <- unique(a) I want a matrix like this... [,1] [,2] [,3] [1,]312 [2,]121 [3,]2