• R/O
  • SSH

提交

标签
No Tags

Frequently used words (click to add to your profile)

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

Commit MetaInfo

修订版63f092093109e2672ac7953461367dc721d1609b (tree)
时间2024-11-20 23:55:56
作者Lorenzo Isella <lorenzo.isella@gmai...>
CommiterLorenzo Isella

Log Message

I added another function for string analysis.

更改概述

差异

diff -r 3720b53b4a93 -r 63f092093109 R-codes/stat_lib.R
--- a/R-codes/stat_lib.R Wed Nov 20 13:56:00 2024 +0100
+++ b/R-codes/stat_lib.R Wed Nov 20 15:55:56 2024 +0100
@@ -7874,3 +7874,15 @@
78747874 ## # Use a different separator
78757875 ## custom_string <- "A, B, C, D"
78767876 ## extract_first_n_chars(custom_string, separator = ",")
7877+
7878+
7879+
7880+count_non_pattern_chars <- function(input_string, pattern) {
7881+ # Remove all characters matching the pattern and count the length of the remaining string
7882+ non_pattern_count <- str_length(str_replace_all(input_string, pattern, ""))
7883+ return(non_pattern_count)
7884+}
7885+
7886+
7887+
7888+