Last active
December 23, 2015 18:49
-
-
Save ateucher/959b73dc84e0cad9cab1 to your computer and use it in GitHub Desktop.
Handy way to get colClasses for a large text file dataset
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
intital <- read.csv("large_dataset.csv", nrows=100) | |
classes <- sapply(initial, class) | |
data <- read.csv("large_dataset.csv", colClasses=classes) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment