« first day (493 days earlier)      last day (2811 days later) » 

1:01 AM
@DirtySockSniffer That's very strange
 
@Frank - How fast do you think this would be for large data?
library(data.table)
dt <- as.data.table(iris)
dt[, write.csv(cbind(Species, .SD), file = sprintf("iris%s.csv", as.character(Species)), row.names=FALSE), by = Species]
Basically creating a csv file for each group
 
 
1 hour later…
2:16 AM
@DirtySockSniffer fwrite?
 
 
3 hours later…
5:00 AM
I think you been hitting the pipe a little too hard ;p — jenesaisquoi Oct 13 '15 at 17:50
 
5:54 AM
@DirtySockSniffer dunno, i'm pretty oblivious to I/O stuff, but i guess fwrite will be faster, as David mentioned, also, i guess instead of cbind, i'd stick with .SD alone and set .SDcols=names(iris) ... not sure if that matters for performance, though
 
 
7 hours later…
 
1 hour later…
 
3 hours later…
5:22 PM
Forgot about fwrite. Thanks @Frank and @alistaire.
 
5:39 PM
I thought there would be an easy way
dt(1.424781, 1486, -5) gives me 4.063163e-10; You are lying. — Zheyuan Li 7 mins ago
That is definitely not what I get
I get 2.75818e-10 with two warnings about precision
 
 
2 hours later…
7:29 PM
@DirtySockSniffer I'm getting the same
 
Not sure why you'd want to download your spam email into R
Took me this long to figure out that <!-- --> breaks you out of a list in markdown
@DavidArenburg Okay, good. Zheyuan uses 32 bit R
Guess he likes living in the stone age
 
 
3 hours later…
10:56 PM
He is acting just like nurka, taking away upvotes from OP
 

« first day (493 days earlier)      last day (2811 days later) »