search for: integer3

Displaying 1 result from an estimated 1 matches for "integer3".

Did you mean: integer
2017 Nov 03
4
Problemas con función factor to integer
...dents$x, 'X','') %>% as.integer(road_accidents$x) } #Función Prueba 2 get.integer2 <- function(dataframe, y) { vector <- str_replace(dataframe[,y], 'X', '') vector <- as.integer(dataframe[,y]) dataframe[,y] <- vector } #Función Prueba 3 get.integer3 <- function(x,y) { vector <- x$y vector <- str_replace(vector, 'X', '') vector <- as.integer(vector) x$y <- vector } Gracias, un saludo. [[alternative HTML version deleted]]