• 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

Revisionfb00af179b09110fced32d82abb532744f8a88d1 (tree)
Time2022-09-30 16:15:21
AuthorLorenzo Isella <lorenzo.isella@gmai...>
CommiterLorenzo Isella

Log Message

I added a parallel version of the function to look for a list of keywords.

Change Summary

Incremental Difference

diff -r 569fd3539a77 -r fb00af179b09 R-codes/stat_lib.R
--- a/R-codes/stat_lib.R Thu Sep 29 16:19:28 2022 +0200
+++ b/R-codes/stat_lib.R Fri Sep 30 09:15:21 2022 +0200
@@ -6986,3 +6986,23 @@
69866986 return(res)
69876987
69886988 }
6989+
6990+### Now its parallel version. It needs library(furrr) and something like
6991+
6992+## n_cores <- 2
6993+
6994+## plan(multicore(workers=return_cores(n_cores)))
6995+
6996+
6997+## to be able to use multiple cores.
6998+
6999+find_text_multiple_keywords_exact_matches_future <- function( df, keywords){
7000+
7001+ res <- future_map_dfr(keywords,
7002+ function(x) find_text_filter_exact_matches(df, x) ,
7003+ .progress =T)
7004+
7005+ return(res)
7006+
7007+}
7008+