5

I'm visualizing a csv with pgfplotstable as following:

\pgfplotstabletypeset[
    string type,
    col sep = comma,
    begin table=\begin{longtable},
    end table=\end{longtable},
    columns={{packo id},{N}},
    every head row/.style={before row=\toprule, after row=\midrule\endhead},
    every last row/.style={after row=\bottomrule}
]
{csv/comparison.csv}

However, I would like to show only a subset of the rows in the file. For instance, row 20 to 100. Is this possible?

  • 3
    Yes you can have a look at skip between rows key and apply twice – percusse May 5 '16 at 20:23
  • @percusse an answer, sir? – cmhughes May 5 '16 at 21:06
  • I was able to do it with two lines: "skip rows between index={0}{20}, "skip rows between index={100}{1000}". If you add that as an answer I can accept it if you want. Thanks! – The Oddler May 5 '16 at 21:12
2

The keys skip between rows can be applied more than once. For frequent intervals it is tedious to write it but can be used to select different row groups.

Here as OP mentioned this is utilized as

skip rows between index={0}{20},
skip rows between index={100}{1000}

will skip the initial 20 and the interval [100,1000] inclusive.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.