I have a function which grabs cells out of a table and returns them. Many of these cells end with two asterisks, and I would not like these returned from the function if they are present. For example:
% Function to get data
\def\getdata#1#2{%
\pgfplotstablegetelem{#1}{#2}\of{\table}\pgfplotsretval%
}
If this returns a value such as "2.3**", I would like "2.3". Thanks, I assume this is rather straightforward.
Best Answer
pgfplotstable
offers a possibility to ignore a list of characters while the data is being read from the table viaignore chars={}
key.However, one should be careful since this method eats every instance of asterisk. For example
Alb*ert
is also modified. So one must be careful (x2).