« first day (2247 days earlier)      last day (1052 days later) » 

6:23 AM
Good motning all
 
6:40 AM
Hello hello :-)
 
6:59 AM
aloha
 
7:53 AM
Helo
Anyone want to improve OP's tidy solution? stackoverflow.com/q/67835097/680068
 
8:19 AM
@zx8754 nop :p
 
 
1 hour later…
9:39 AM
 
 
2 hours later…
11:57 AM
#TIL using [.noquote to avoid prefixing column names when we subset same column multiple times: stackoverflow.com/a/32504684/680068 via @Frank
 
12:41 PM
Anyone up for a benchmarking? current tidy solutions are slow, maybe try purrmap? or data.table? stackoverflow.com/q/68001382/680068
 
 
1 hour later…
2:06 PM
@zx8754 nice: base R being ~ 18 times faster than tidyverse :-)
 
@Jaap I am hoping there are better tidy versions...
 
@zx8754 benchmark with x5 as data.table solution:
Unit: relative
 expr       min        lq      mean    median        uq       max neval  cld
   x1  1.650099  1.438877  1.507201  1.431101  1.457698  1.343637   100 a
 x1.1  4.414559  3.823216  3.751808  3.775250  3.757775  1.998286   100  b
   x2 25.413184 22.095975 22.572583 21.911884 24.408687  8.271622   100    d
   x3 23.421300 20.319612 20.824501 20.095319 20.767466 18.568295   100   c
   x4 25.242030 22.040849 22.265638 22.020082 24.202557  6.794015   100    d
   x5  1.000000  1.000000  1.000000  1.000000  1.000000  1.000000   100 a
never mind ----^
I made a typo; base R still the fastest:
Unit: relative
 expr       min        lq      mean    median        uq       max neval  cld
   x1  1.000000  1.000000  1.000000  1.000000  1.000000  1.000000   100 a
 x1.1  2.694717  2.675554  2.787942  2.665159  2.835791  3.800284   100  b
   x2 15.508268 15.426045 14.345951 15.478955 16.623557  6.122571   100    d
   x3 14.287112 14.009078 13.044710 14.146175 14.580066  5.267667   100   c
   x4 15.490364 15.318374 14.640672 15.291183 16.025033 19.273504   100    d
   x5  3.758916  3.777874  3.554927  3.816470  3.864071  1.704555   100  b
 
3:06 PM
@Jaap Add the data.table solution and update benchmark post? [still better than tidy :D ]
 
@zx8754 posted & updated now :-)
 

« first day (2247 days earlier)      last day (1052 days later) »