How to skip extra lines before the header of a tab delimited delimited file in R
问题 The software I am using produces log files with a variable number of lines of summary information followed by lots of tab delimited data. I am trying to write a function that will read the data from these log files into a data frame ignoring the summary information. The summary information never contains a tab, so the following function works: read.parameters <- function(file.name, ...){ lines <- scan(file.name, what="character", sep="\n") first.line <- min(grep("\\t", lines)) return(read