Created
January 8, 2014 21:14
-
-
Save Thell/8324791 to your computer and use it in GitHub Desktop.
Possible Wrapper to skip the last n lines of R read.csv
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
myread.csv <- function( file, header=TRUE, sep=",", quote="\"", dec=".", fill=TRUE, comment.char="", skip.footer=0, ... ) { | |
file <- readLines(file) | |
if( skip.footer > 0 ) file <- file[-(skip.footer)] | |
read.csv( file, header, sep, quote, dec, fill, comment.char, ... ) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment