@@ -114,8 +114,8 @@ remotes::install_github("TysonStanley/tidyfast")
114
114
## Examples
115
115
116
116
The initial versions of the nesting and unnesting functions were shown
117
- in a [ preprint] ( https://psyarxiv.com/ u8ekc/ ) . Herein is shown some
118
- simple applications and the functions’ speed/efficiency.
117
+ in a [ preprint] ( https://osf.io/preprints/psyarxiv/ u8ekc/ ) . Herein is
118
+ shown some simple applications and the functions’ speed/efficiency.
119
119
120
120
``` r
121
121
library(tidyfast )
@@ -244,13 +244,13 @@ highlighted below. Notably, the timings are without the `nested1` and
244
244
#> # A tibble: 2 × 3
245
245
#> expression median mem_alloc
246
246
#> <chr> <bch:tm> <bch:byt>
247
- #> 1 dt_nest 1.16ms 2.88MB
248
- #> 2 group_nest 1.94ms 5.12MB
247
+ #> 1 dt_nest 1.14ms 2.88MB
248
+ #> 2 group_nest 1.91ms 5.12MB
249
249
#> # A tibble: 2 × 3
250
250
#> expression median mem_alloc
251
251
#> <chr> <bch:tm> <bch:byt>
252
- #> 1 dt_unnest 2.22ms 11.84MB
253
- #> 2 unnest 2.38ms 5.96MB
252
+ #> 1 dt_unnest 2.08ms 11.84MB
253
+ #> 2 unnest 2.33ms 5.96MB
254
254
255
255
## Pivoting
256
256
@@ -325,10 +325,10 @@ But let’s compare some basic speed and efficiency. Because of the
325
325
#> # A tibble: 4 × 3
326
326
#> expression median mem_alloc
327
327
#> <chr> <bch:tm> <bch:byt>
328
- #> 1 dt_pivot_longer 360.92µs 1001.23KB
329
- #> 2 pivot_longer 1.93ms 1.73MB
330
- #> 3 dt_pivot_wider 5.62ms 1.99MB
331
- #> 4 pivot_wider 3.96ms 2.71MB
328
+ #> 1 dt_pivot_longer 359.98µs 1001.23KB
329
+ #> 2 pivot_longer 1.94ms 1.73MB
330
+ #> 3 dt_pivot_wider 5.8ms 1.99MB
331
+ #> 4 pivot_wider 3.87ms 2.71MB
332
332
333
333
### If Else
334
334
@@ -377,9 +377,9 @@ built on `data.table::fifelse()`.
377
377
#> # A tibble: 3 × 3
378
378
#> expression median mem_alloc
379
379
#> <chr> <bch:tm> <bch:byt>
380
- #> 1 case_when 44.9ms 72.5MB
381
- #> 2 dt_case_when 10.6ms 19.1MB
382
- #> 3 fifelse 20ms 34.3MB
380
+ #> 1 case_when 45.2ms 72.5MB
381
+ #> 2 dt_case_when 10.7ms 19.1MB
382
+ #> 3 fifelse 20.1ms 34.3MB
383
383
384
384
## Fill
385
385
@@ -492,8 +492,8 @@ marks3 <-
492
492
#> # A tibble: 2 × 3
493
493
#> expression median mem_alloc
494
494
#> <bch:expr> <bch:tm> <bch:byt>
495
- #> 1 tidyr::fill(dplyr::group_by(df3, id), x, y) 15.9ms 46.4MB
496
- #> 2 tidyfast::dt_fill(dt3, x, y, id = list(id)) 12.7ms 17.6MB
495
+ #> 1 tidyr::fill(dplyr::group_by(df3, id), x, y) 15.4ms 46.4MB
496
+ #> 2 tidyfast::dt_fill(dt3, x, y, id = list(id)) 12.4ms 17.6MB
497
497
498
498
## Separate
499
499
@@ -536,9 +536,9 @@ efficient compared to `tidyr::separate()`.
536
536
#> # A tibble: 3 × 3
537
537
#> expression median mem_alloc
538
538
#> <chr> <bch:tm> <bch:byt>
539
- #> 1 separate 2.76s 3.89GB
540
- #> 2 dt_separate 46.59ms 26.73MB
541
- #> 3 dt_separate-mutable 46.47ms 26.72MB
539
+ #> 1 separate 2.79s 3.89GB
540
+ #> 2 dt_separate 47.31ms 26.73MB
541
+ #> 3 dt_separate-mutable 46.85ms 26.72MB
542
542
543
543
## Count and Uncount
544
544
0 commit comments