[R] OpenRTB Data

2018-02-27 Thread JEFFERY REICHMAN
R Forum Are there any R libraries designed specifically for RTB (Real Time Bidding) data? Jeff Reichman __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] Parallel assignments and goto

2018-02-27 Thread Thomas Mailund
I did try assign. That was the slowest version from what my profiling could tell, as far as I recall, which really surprised me. I had expected it to be the fastest. The second slowest was using the [[ operator on environments. Or it might be the reverse for those two. They were both slower than

Re: [R] Parallel assignments and goto

2018-02-27 Thread Bert Gunter
No clue, but see ?assign perhaps if you have not done so already. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Tue, Feb 27, 2018 at 6:51 AM, Thomas

Re: [R] Aggregate over multiple and unequal column length data frames

2018-02-27 Thread Bert Gunter
Then you need to rethink your data structure. Use a list instead of a data frame. The components of a list can have different lengths, and the "apply" family of functions (lapply(), etc.) can operate on them. Consult any good R tutorial for details. Cheers, Bert Bert Gunter "The trouble with hav

Re: [R] Parallel assignments and goto

2018-02-27 Thread Thomas Mailund
Interestingly, the <<- operator is also a lot faster than using a namespace explicitly, and only slightly slower than using <- with local variables, see below. But, surely, both must at some point insert values in a given environment — either the local one, for <-, or an enclosing one, for <<- —

Re: [R] Aggregate over multiple and unequal column length data frames

2018-02-27 Thread PIKAL Petr
Hi you does not need this: dput(df1<-data.frame(col1=c(1,2,3,4,5),col2=c("aa","aa","bb","cc","dd"))) this is enough to represent exactly any object to mail: > dput(df1) structure(list(col1 = c(1, 2, 3, 4, 5), col2 = structure(c(1L, 1L, 2L, 3L, 4L), .Label = c("aa", "bb", "cc", "dd"), class = "fac

Re: [R] Aggregate over multiple and unequal column length data frames

2018-02-27 Thread Ek Esawi
Thank you Pikal and Bert. My apology for posting parts of my previous email in HTML. Bert's suggestion will work but i am wondering if there is an alternative especially in the case where the data frames are big; that is the difference in lengths among them is large. Below is a list of sample date