Revisión | 28bcbffebffb12a27461129f1b92dd7ad4155df9 (tree) |
---|---|
Tiempo | 2024-09-23 15:46:24 |
Autor | Lorenzo Isella <lorenzo.isella@gmai...> |
Commiter | Lorenzo Isella |
I added a small function to convert a string to an integer.
@@ -7650,3 +7650,13 @@ | ||
7650 | 7650 | return(FALSE) |
7651 | 7651 | } |
7652 | 7652 | } |
7653 | + | |
7654 | + | |
7655 | +name_to_integer <- function(name){ | |
7656 | + res <- utf8ToInt(name) |> | |
7657 | + sum() | |
7658 | + | |
7659 | + return(res) | |
7660 | +} | |
7661 | + | |
7662 | + |