<h2>org.autoplot.csv.TableOps</h2><p>I'd still like to refactor all the table-type sources to get the common codes. These include:<ul> <li> html tables <li> xls, csv <li> dat </ul></p> <h2>TableOps( )</h2> <p></p> <hr> <a name="columnIndex"></a> <h2>columnIndex</h2> columnIndex( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> name, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String[]</a> fieldNames ) → int <p>returns the field index of the name, which can be:<ul> <li>a column name <li>an implicit column name "field1" <li>a column index (0 is the first column) <li>a negative column index (-1 is the last column) </ul></p> <h3>Parameters</h3> name - a String <br> fieldNames - the field names for each column. <h3>Returns:</h3> the index of the field, or -1 if the column doesn't exist. <br><br> <a href="https://github.com/autoplot/dev/search?q=columnIndex&unscoped_q=columnIndex">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/csv/TableOps.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/csv/TableOps.html#columnIndex">[view on old javadoc]</a> <br> <br> <hr> <a name="getDelim"></a> <h2>getDelim</h2> getDelim( <a href='https://docs.oracle.com/javase/8/docs/api/java/io/PushbackInputStream.html'>java.io.PushbackInputStream</a> thein ) → char <p>get the delimiter, either a comma or semicolon, by looking at the first few lines of the file. The pushbackInputStream should be returned at the zeroth byte.</p> <h3>Parameters</h3> thein - the PushbackInputStream, which will be at the zeroth byte to start and the zeroth byte when this is done. <h3>Returns:</h3> the delimiter. <br><br> <a href="https://github.com/autoplot/dev/search?q=getDelim&unscoped_q=getDelim">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/csv/TableOps.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/csv/TableOps.html#getDelim">[view on old javadoc]</a> <br> <br> <hr> <a name="getFieldIndex"></a> <h2>getFieldIndex</h2> getFieldIndex( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> string, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String[]</a> fieldNames ) → int <p>returns the index of the field. Supports the name, or field0, or 0, etc.</p> <h3>Parameters</h3> string - the field for which we want to identify the index <br> fieldNames - the field names for each column. <h3>Returns:</h3> the field index, or -1 if the column doesn't exist. <br><br> <a href="https://github.com/autoplot/dev/search?q=getFieldIndex&unscoped_q=getFieldIndex">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/csv/TableOps.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/csv/TableOps.html#getFieldIndex">[view on old javadoc]</a> <br> <br> <hr> <a name="parseRangeStr"></a> <h2>parseRangeStr</h2> parseRangeStr( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> o, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String[]</a> fieldNames ) → int[] <p>parse range strings like "3:6", "3:-5", and "Bx_gsm-Bz_gsm" if the delimiter is colon, then the end is exclusive. If it is "-", then it is inclusive. For example,<ul> <li>3:6 -> [3,6] <li>3-5 -> [3,6] </ul></p> <h3>Parameters</h3> o - the range string or field names, etc. <br> fieldNames - the field names for each column. <h3>Returns:</h3> the two-element range, where first index is inclusive, second is exclusive. <br><br> <a href="https://github.com/autoplot/dev/search?q=parseRangeStr&unscoped_q=parseRangeStr">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/csv/TableOps.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/csv/TableOps.html#parseRangeStr">[view on old javadoc]</a> <br> <br>