44 lines
3.5 KiB
Markdown
44 lines
3.5 KiB
Markdown
#### quit
|
|
Does what it says.
|
|
|
|
#### info [att|tag|hdr|col|row]
|
|
Show the table information. 'att' shows the annotations, 'tag' shows the tag lines, 'hdr' shows the head lines, 'col' shows the columns' summary, and 'row' shows the rows' summary. Use '|' to separate multiple options.
|
|
|
|
#### head
|
|
Show the first `n` (the default is 10) rows of the table.
|
|
|
|
#### tail
|
|
Show the last `n` (the default is 10) rows of the table.
|
|
|
|
#### open \<file\> [nohead|column|row|both] [\<head_num\>] [\<deli-sym\>] [\<att-sym\>] [\<tag-sym\>]
|
|
Open a dsv/csv file. The default setups are 'nohead', space for delimeter, '#' for annotations, and '!' for tags. If the file name ends with '.csv', the default delimeter is ','.
|
|
|
|
#### save \<file\> [\<delimeter\>] [\<att-sym\>] [\<tag-sym\>]
|
|
Save table to a dsv/csv file. The default setups are space for delimeter, '#' for annotations, and '!' for tags. If the file name ends with '.csv', the default delimeter is ','.
|
|
|
|
#### stats \<colname1\> \<colname2\> ...
|
|
Show statistics of a data column or columns. If the input file has no column names, use inbuild names `C<id>` to select the columns.
|
|
|
|
#### enable table|column|row [\<name1\> \<name2\> ...]
|
|
Enable table outputs. If the input file has no row or column names, use inbuild names `R<id>` and `C<id>` to select the rows and columns.
|
|
|
|
#### disable table|column|row [\<name1\> \<name2\> ...]
|
|
Disable table outputs. If the input file has no row or column names, use inbuild names `R<id>` and `C<id>` to select the rows and columns.
|
|
|
|
#### insert row|col [\<new-name\>] [\<insert-name\>]
|
|
Insert a new row or column. The new row or column will be attached to the end of the table by default. A `new-name` can be provided if the user wants to rename the new row or column. Provide the `insert-name` to insert the new row or column at the specified row or column. The remaining columns or rows will be moved one step right or down accordingly. If the input file has no row or column names, use inbuild names `R<id>` and `C<id>` to select the rows and columns.
|
|
|
|
#### type row|col int|float|string \<name\>
|
|
Set the data type of a row or column. If the input file has no row or column names, use inbuild names `R<id>` and `C<id>` to select the rows and columns.
|
|
|
|
#### title row|col \<t1\>,\<t2\>,\<t3\>,... [\<id1\>,\<id2\>,\<id3\>,...]
|
|
Set row and column titles. The titles will be assigned sequentially if no index is specified.
|
|
|
|
#### math \<func\> \<col1\>,\<col2\>,\<col3\>...
|
|
Preform mathematic operations of column data. The user needs to write a mathematical expression using the column names as variables. Then provide the column names as the arguments, in which the resultant column's name must be placed at the beginning. For example, to calculate the sum of column `C1` and `C2`, and store the result in column `C3`, the command is: `math C3=C1+C2 C3,C1,C2`.
|
|
|
|
#### random normal|uniform \<p1\> \<p2\> [\<colname\>]
|
|
Generate random data using normal or uniform distribution. The first parameter is the mean or the lower bound, and the second parameter is the standard deviation or the upper bound. If no column name is provided, a new column will be created (titled "RdData").
|
|
|
|
#### filter row|col regex|math \<expression\> \<name1\>,\<name2\>,\<name3\>...
|
|
Filter row and column data using regex and mathematic expressions. The first parameter is the expression, and the following parameters are the column names. For example, to filter rows whose column `C1` is greater than 0, the command is: `filter col math C1>0 C1`. Regex expression can be used to filter rows whose column `C1` contains the string "abc", the command is: `filter col regex abc C1`. |