Posts by igorkf • 101 points
2 posts
-
0
votes1
answer120
viewsA: How to parallelize the.call function
To parallelize a function, you can use the package purrr. The function map2 serves to use multiple arguments in one function at once: library(tidyverse) a = c("Eu sou o Igor.", "Eu sou o João.") b =…
-
0
votes2
answers3449
viewsA: In R, count words and enter a line break
You can do this using the function nbreak() that I created: devtools::install_github("igorkf/breaker") library(breaker) legenda <- c("Gostei muito da atuação" , "Gostei pouco da atuação", "Nem…