Revisión | 52b84a5840f60cfc5bdeca04b72c55fa4d7543f1 (tree) |
---|---|
Tiempo | 2023-01-27 02:51:10 |
Autor | Lorenzo Isella <lorenzo.isella@gmai...> |
Commiter | Lorenzo Isella |
I added a function to remove a character or a pattern from a string.
@@ -7045,3 +7045,11 @@ | ||
7045 | 7045 | x) |
7046 | 7046 | } |
7047 | 7047 | |
7048 | + | |
7049 | +remove_char <- function(x, pattern){ | |
7050 | + | |
7051 | + res <- str_replace_all(x, pattern, "") | |
7052 | + | |
7053 | + return(res) | |
7054 | + | |
7055 | +} |