Created
May 1, 2017 04:56
-
-
Save jjesusfilho/f4e040500c9272a093e130cf9b5f62b5 to your computer and use it in GitHub Desktop.
Converte cifras para
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
number_br<-function(str){ | |
str<-stringr::str_replace_all(str,"\\.","") | |
str<-stringr::str_replace_all(str,",",".") | |
str<-stringr::str_trim(str) | |
num<-as.numeric(str) | |
return(num) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment