• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#windowsobjective-ccocoaqtpython誰得phprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisión7f03e71cf27fb01bc0d4c77fb08694e9e056e14c (tree)
Tiempo2023-01-23 19:18:40
AutorLorenzo Isella <lorenzo.isella@gmai...>
CommiterLorenzo Isella

Log Message

I have changed the clean_data function to give the option to keep duplicated lines.

Cambiar Resumen

Diferencia incremental

diff -r b849bec577de -r 7f03e71cf27f R-codes/stat_lib.R
--- a/R-codes/stat_lib.R Fri Jan 20 10:17:40 2023 +0100
+++ b/R-codes/stat_lib.R Mon Jan 23 11:18:40 2023 +0100
@@ -5138,15 +5138,22 @@
51385138
51395139
51405140
5141-clean_data <- function(x){
5141+clean_data <- function(x, remove_duplicated_rows=T){
51425142
51435143 res <- x |> ## %>%
51445144 clean_names() |> ## %>%
51455145 remove_empty() |> ## %>%
5146- distinct() |> ## %>%
5146+
51475147 rem_dupl_cols() |> ## %>%
51485148 rem_const_cols()
51495149
5150+ if (remove_duplicated_rows==T){
5151+
5152+ res <- res |>
5153+ distinct()
5154+
5155+ }
5156+
51505157 return(res)
51515158
51525159