Last active
May 22, 2017 12:06
-
-
Save sizhky/d303ea7b60281b6303c31e0f3ec91da2 to your computer and use it in GitHub Desktop.
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
datatypes <- function(dataframe){ | |
types <- split(names(dataframe),sapply(dataframe, function(x) paste(class(x), collapse=" "))) | |
return(types) | |
} | |
factor_cols <- c() | |
raw_data[,factor_cols] <- lapply(raw_data[,factor_cols], | |
function(x) factor(x)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment