Created
April 3, 2014 14:25
-
-
Save fixxer/9955319 to your computer and use it in GitHub Desktop.
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
input = read.csv("input.csv", sep=";", colClasses=rep("character", 12), col.names=rep("c", 12)) | |
output = result[,c("c.1", "c.7", "c")] # take second, eighth and first columns | |
output["new"] <- "" # append new empty column | |
colnames(output) <- c("Column 1", "Column 2", "Column 3", "Column 4") # rename columns | |
write.table(output, "output.csv", sep=";", quote=FALSE, row.names=FALSE) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment