« first day (779 days earlier)      last day (2744 days later) » 

06:13
hello all!
Morning people
Hi @jogo
06:44
hello @ all
Hello :)
hi @Jaap and @RonakShah and @Sotos
Isn't this a simple merge inner outer problem ? stackoverflow.com/questions/44450504/…
@RonakShah looks like it
07:21
@RonakShah yes.
New users .... Sigh..
@RonakShah how to close it? dupe of stackoverflow.com/questions/3505701/… ?
@jogo not sure. is that too general?
07:47
@RonakShah now the question can be closed "no longer rep"
voted. It is strange how people dump in some code without explaining anything and expect solution.
It was generous of you to read the dump, understand it and provide a solution.
@RonakShah I suppose the question is only a little part of the task. soon she/he will need other aggregation functions.
08:25
this stackoverflow.com/q/44452473/5414452 is funny: she/he writes "I understand" but clearly demonstrates that not: "but in line 5 there is no x" :D
Good morning!
Was busy to find a solution for this Q: stackoverflow.com/questions/44404258/…
but I believe there must be better ones
If someone wants to take the challenge :-)
 
1 hour later…
09:36
Morning all.
Any Rcpp & data.table experts in here that can help me out: stackoverflow.com/q/44447236/5977215?
@SymbolixAU out of my league unfortunately
(the rcpp part that is)
yeah, mine too :s
still; it was an entertaining day watching the UK election results come in
09:52
@Jaap I wonder why nurka hasn't posted an answer himself.
@Jaap looks like it is gone
 
1 hour later…
10:54
I'm done with this one. If anyone else wants to bother... stackoverflow.com/questions/44455415/computing-with-dataframes
@RomanLuštrik just let him email you, and invoice him :)
@RomanLuštrik I edited, still can't be bothered to understand the question.
@RomanLuštrik I flagged that comment with the admission
It's already gone. From our mouth to gods' ears.
11:14
Does anyone here use H2O?
@Axeman Everyone
2
@zx8754 I mean the machine learning package, not water ;)
It keeps predicting classifications with values above 1 for some reason
Yes, heard about it, never used it.
11:32
@Axeman Oh, above 1 is very probably. :)
@RomanLuštrik haha
@RomanLuštrik lookin
And done. Thanks!
12:29
@Jaap is this a dupe?. It misses the total count col...
OP edited complaining about it
@Sotos check the 2nd link I added ;-)
@Jaap ahhh here we go... the double group by... missed that :)
12:56
@zx8754 lol
13:34
So turns out that when hadley retweets someone that tweet gets about 10,000 impressions
13:53
can we close this because of typo? stackoverflow.com/questions/44458238/…
@Axeman ??
14:05
@jogo imo yes
14:23
Hello guys !
14:55
LaTeX without 6Gb install? Yes please! tectonic-typesetting.github.io/en-US
15:22
What's wrong with MikTeX?
My MikTeX with tons of packages weight only 1 GB.
I'm on macOS. There's a minified version of MacTeX, but it requires figuring out what else you need to install to make it work, which when you're using it via pandoc via RMarkdown is not necessarily simple. The idea is that tectonic just downloads what it needs to get the job done without the user ever calling TeXLive Manager.
Oh, macOS.
LaTeX support is the worst there.
Maybe. I've got it working fine, but it takes a silly amount of space.
I mean from time-space point of view.
On Linux I usually just install everything, without docs.
And it's pretty small.
15:48
Yeah, I really don't understand why it's so big. There are a lot of pieces in it, but most of them are simple.
@alistaire Documentation.
Most of the packages come with the documentation in PDF.
interesting, maybe I should do a custom install
16:07
dumb question: i want to do sprintf("% 5.0f", 1:10) where the 5 is determined dynamically. is there some not-awful way to do this (not switching back and forth between sprintf and paste)? i guess i've done it before but am at a loss
ah ok, the answer is magic:
52
A: Set variable text column width in printf

Oliver CharlesworthYou can do this as follows: printf("%*d", width, value); From Lee's comment: You can also use a * for the precision size: printf("%*.*f", width, precision, value);

surprised there's no r question for that on SO
 
2 hours later…
18:23
Question for data.table guys. I'm using lists inside a row like this: dt[,gearsL:=.(list(unique(gear))), by=cyl] . I'd like to store that in an sql database to use later. Is there a way to flatten the list so it's readable again as a data.table item ?
For clarity, I should have written:
dt <- data.table(mtcars)[,.(gear, cyl)]
dt[,gearsL:=.(list(unique(gear))), by=cyl] # improved, pretty
after asking the question I a realized that storing it as a dput might work
18:43
@PLapointe hm, not sure i follow. seems like it should depend a lot on the DB. i know various ones are designed for different purposes and support different things... simplest way would be to dt[, rid := .I]; gearLDT = dt[, .(gear = unlist(gearsL)), by=rid] and store the latter table in the DB too, eh..?
19:04
@Frank I see what you did. However, I need to store the entire list in one "cell" (in excel terms), store that long character field in an sql database in a way I could read it again as as.data.frame or something similar.
my real life example, the gearsL:=.(list(unique(gear))) is a two item list which can be transformed to a data frame (same number of rows)
@PLapointe ok. i think there's almost never a need to misuse tabular data storage like that, but you know your case better than i do
@Frank yeah, I guess not many ppl use it that way but it would be awesome for me if I could find a way to do that
@frank haha it's not "misuse". You can store text in an sql database. that's how twitter and facebook conversations are stored
it's just that for every row, I need to store 6000 lines. It wouldn't be efficient to store it as a traditional RDBMS
@PLapointe ok, but lists are not text. i guess the only rationale for storing a two item list is because the order doesn't matter (otherwise, you could use two columns, one for the first element and the other for the second?), and if the order doesn't matter, then you are trying to store a set (in the set theoretic sense), so you need a DB that supports set-valued cells... or to make a new table
relational data is almost always smaller, in terms of memory, than a single massive table, in my experience...
(currently chopping a 2GB thing i was given, hopefully into relational tables...)
19:21
@yeah, I understand what you are saying, but I will never need to do operations on this list by SQL, I will need to load specific rows back in R to do a merge of the info in these lists.
my SQL data base is already huge, i'm just trying to store text
i guess this is it:
48
Q: How to store a list in a column of a database table

JnBrymnSo, per Mehrdad's answer to a related question, I get it that a "proper" database table column doesn't store a list. Rather, you should create another table that effectively holds the elements of said list and then link to it directly or through a junction table. However, the type of list I wan...

np, an interesting problem

« first day (779 days earlier)      last day (2744 days later) »