• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisión626baeef9bc4307804a1db36aeb0c0d2a472d04e (tree)
Tiempo2023-02-03 23:43:16
AutorLorenzo Isella <lorenzo.isella@gmai...>
CommiterLorenzo Isella

Log Message

I modified the add_total function to make sure I operate on a tibble.

Cambiar Resumen

Diferencia incremental

diff -r 164b668dad39 -r 626baeef9bc4 R-codes/stat_lib.R
--- a/R-codes/stat_lib.R Wed Feb 01 22:15:54 2023 +0100
+++ b/R-codes/stat_lib.R Fri Feb 03 15:43:16 2023 +0100
@@ -4658,8 +4658,20 @@
46584658
46594659 ## I rewrite the function above using the native pipe.
46604660
4661+## add_total <- function(x, pos=1, ...){
4662+## adorn_totals(x, ...) |>
4663+## as_tibble() |>
4664+## (\(x) move_row(x, nrow(x)+1, pos))()
4665+
4666+## }
4667+
4668+
4669+
46614670 add_total <- function(x, pos=1, ...){
4662- adorn_totals(x, ...) |>
4671+
4672+ x <- as_tibble() |>
4673+
4674+ adorn_totals( ...) |>
46634675 as_tibble() |>
46644676 (\(x) move_row(x, nrow(x)+1, pos))()
46654677
@@ -4667,6 +4679,8 @@
46674679
46684680
46694681
4682+
4683+
46704684 ## See split(d, ceiling(seq_along(d)/20))
46714685
46724686 split_vec <- function(d, mylen){