Last active
April 3, 2018 22:55
-
-
Save benzipperer/9fa15a95965443380bb801853086a9dc to your computer and use it in GitHub Desktop.
problematic import
This file contains hidden or 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
| setwd("/data/nlsy/data/raw/nlsy97_all_1997-2013") | |
| head -n 1 nlsy97_all_1997-2013 > data.dat | |
| read_delim("data.dat",delim=" ",) | |
| read_delim("data.dat",delim=" ",col_types = cols(.default = col_integer())) | |
| read_delim("data.dat",delim=" ",col_names=FALSE,col_types = cols(.default = col_integer())) | |
| read_delim(pipe("cut -d \" \" -f1-8 data.dat"),delim=" ",col_names=FALSE,col_types = cols(.default = col_integer())) | |
| newdata<-read_delim(pipe("cut -d \" \" -f1-10000 nlsy97_all_1997-2013.dat"),delim=" ",col_names=FALSE) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment