Here is a simple file named test
Symbol|Security Name|Market Category|Test Issue|Financial Status|Round Lot Size
AAC|Australia Acquisition Corp. - Ordinary Shares|S|N|D|100
AACC|Asset Acceptance Capital Corp. - Common Stock|Q|N|N|100
AACOU|Australia Acquisition Corp. - Unit|S|N|N|100
File Creation Time: 0803201218:04|||||
If I don’t need the last line in the file, I can do this:
data = read.table('test',sep='|')
data = data[1:(nrow(data)-1),1:ncol(data)]
Is there another way to do this directly when reading the file in?
Somewhat more compact would be:
You might want to change your input command to read:
… since the default value for header is FALSE.