Permalink
Browse files

Actually pass the input to transpose() 😳

  • Loading branch information...
jennybc committed Apr 2, 2018
1 parent a0f1c7e commit 3e5a1f59c8ac940cc42a397d4ef0f2d8db0c3da9
Showing with 7 additions and 7 deletions.
  1. +1 −1 wch.Rmd
  2. +6 −6 wch.md
  3. BIN wch_files/figure-html/plot-1.png
@@ -84,7 +84,7 @@ f_rowwise <- function(df) {
# @JennyBryan
# purrr::transpose (only works for this specific task, i.e. one sub-list per row)
f_transpose <- function(df) {
transpose
transpose(df)
}
```

12 wch.md
@@ -92,7 +92,7 @@ f_rowwise <- function(df) {
# @JennyBryan
# purrr::transpose (only works for this specific task, i.e. one sub-list per row)
f_transpose <- function(df) {
transpose
transpose(df)
}
```

@@ -145,11 +145,11 @@ knitr::kable(times)

nrow apply split_lapply lapply_row lapply_lapply pmap pmap_aslist rowwise transpose
------ ------ ------------- ----------- -------------- ------ ------------ -------- ----------
1e+01 0.000 0.001 0.000 0.001 0.002 0.000 0.042 0
1e+02 0.001 0.005 0.006 0.005 0.001 0.001 0.056 0
1e+03 0.004 0.046 0.037 0.013 0.002 0.002 0.051 0
1e+04 0.039 0.439 0.366 0.163 0.018 0.017 0.532 0
1e+05 0.546 22.844 21.957 1.833 0.196 0.227 5.301 0
1e+01 0.000 0.000 0.001 0.000 0.001 0.001 0.044 0.000
1e+02 0.002 0.005 0.005 0.005 0.002 0.002 0.054 0.002
1e+03 0.004 0.036 0.034 0.015 0.002 0.002 0.056 0.001
1e+04 0.033 0.422 0.339 0.163 0.017 0.016 0.504 0.002
1e+05 0.527 24.720 23.743 1.808 0.201 0.220 5.322 0.017


## Plot times
BIN +1.54 KB (100%) wch_files/figure-html/plot-1.png
Binary file not shown.

0 comments on commit 3e5a1f5

Please sign in to comment.