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
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
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
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
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 <<- —
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
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
7 matches
Mail list logo