I'm trying to read in a file using the function fread. The file that I'm trying to read in has about 100 lines of information I don't want prior to getting to my matrix of data that I do want. On the line prior to the data I want there is always a string identifier "*end*"
The following fread call: impcoord <- fread('H:/SBE19plus_01907535_2015_06_17_0093.cnv',skip="*END*") almost gets me there but it starts reading AT *END* and I'd like to have it start the line after. I can't figure out how to make this work. I know I could have a two step function where I have a function scan the file to Identify the line that has *END* but I thought I could just do it with one fread() call. thanks for the help. Trevor [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.