« first day (1429 days earlier)      last day (1864 days later) » 

12:01 AM
welcome @PikachuthePurpleWizard
 
12:17 AM
Thank you @Axeman :)
 
 
2 hours later…
 
2 hours later…
3:43 AM
@PikachuthePurpleWizard welcome
 
 
3 hours later…
7:07 AM
Good morning all
 
Good morning and good riddance of gather and spread
2
 
7:22 AM
hello
 
Hi all :-)
 
 
8 hours later…
3:25 PM
Hi @divibisan.
 
@PikachuthePurpleWizard Hi everyone!
@zx8754 That's exciting! I've never liked gather and spread. It seems like there are going to be a lot of canonical questions that need to be updated
 
obscure function of the day: modifyList, never heard of it before, from github.com/renkun-ken/rlist/issues/117#issuecomment-252272740
hi, Pika & divi
 
 
2 hours later…
5:10 PM
This question is a clear duplicate of this one, but as @gregor pointed out, the dupe target is working with a matrix, while the new question is with a data.table.
If there are data.table specific answers, would it be better to keep the new question to host them, or should they be hosted on the dupe target, even though they don't specifically address the original question? Thoughts?
 
5:37 PM
2
Q: R - Multiply every row of df or matrix with a vector

Z117I can't get to make this work, although it seems fairly simple. I would like to multiply every row in matrix (or dataframe or datatable) b, with vector a. a <- data.table(t(1:4)) b <- matrix(data=2, nrow=3, ncol=4) Desired output (in matrix, dataframe or datatable form): [,1] [,2] [,3] [...

maybe this ^?
among those this seems the best stackoverflow.com/q/18382883 though multiple dupe targets can be set
 
5:54 PM
@zx8754 I feel like I'm the only one that actually liked gather and spread.
The only problem is spreading multiple columns, but I hardly ever do that.
I guess I'll see whether I like the new pivot functions
 
@Axeman i never learned their syntax nor what the metaphor was (cards on a table?), melt/cast have grown on me, though i initially didn't like the cutesy names
maybe this'll be a new trend in the 'verse and we'll never get to see verbs like absorb or spill
 
I don't get the names either
and I guess pivot_longer and pivot_wider would be quite good names
 
 
2 hours later…
7:57 PM
@Axeman looks like you're not alone in wanting -er github.com/tidyverse/tidyr/issues/579
one weird thing in that vignette -- the opening example ought to create income as an ordered factor, but yields a string
also, read_csv seems broken if it is reading counts as dbl instead of int..
still waiting for the tidyr vignette on how you ought to be using multiple tables, not just one, even if it means doing something that doesn't fit in a single pipe...
ex: that fish data -- casting it wide is insufficient if there are fish with 0 obs, ought to join with some separate fish table
 
8:15 PM
@Frank it was brought up on twitter
so I saw it there
 
ah ok
 
@Frank Shouldn't it be pivot_longr?
 
@divibisan i could get on board with that :) puts more emphasis on the letter r
 
@Frank I agree that'd be nice, but not sure if pivot_long should do that, or just pipe to mutate
 
been a while since i've looked at #rstats. plenty of cool stuff, i see:
The future is hex. Made with #rstats https://www.github.com/symbolixau/mapdeck
huh, image doesn't render here, oh well
@Axeman yeah, i guess i'm not sure where it fits their design philosophy. personally, i'd want an interface like meltit(x, cols = list(count = melt_cols(nm_in = -religion, nm_out = "income", type_out = "ordered"), other_var = ...)) i have my own helper functions like that (since my program reads in 30 tables, tests for types etc using vetr)
 
8:29 PM
@Frank Gotcha. I think I prefer chaining stuff together vs one large conglomerate function
 

« first day (1429 days earlier)      last day (1864 days later) »