I have a text file created with a bash script I wanted to read the data avoiding the first line.
I have written few dirty codes, but I wondered if anybody can do it in fewest possible nice one liners. I'm trying to learn to code more efficiently.
Here is the table.
Compound State Method Approach S^2 Energy Cube file Path
CF2 triplet CC NONE 2.007614 -237.329191671337 plotted ./3B1/CF2-CC-t.out
CF2 triplet DFT NONE 2.005408 -237.601091985298 plotted ./3B1/CF2-t.out
I am looking for the nicest possible way to read all this table into a matrix DATA[[x,y]]
Import
of TSV files paying attention to the"TextDelimiters"
option. $\endgroup$"HeaderLines" -> 1
to yourImport
expression to avoid importing the first line. Alternatively you could use a construct likeImport[your arguments][[2;;]]
to discard that first line. $\endgroup$