gctl/tool/dsviewer/dsviewer.md

26 lines
1.3 KiB
Markdown
Raw Normal View History

2024-12-15 19:15:12 +08:00
#### quit
Does what it says.
2025-02-04 11:54:29 +08:00
#### info [column|row|both]
2024-12-15 19:15:12 +08:00
Show the table information.
2025-02-04 11:54:29 +08:00
#### head
Show the first `n` (the default is 10) rows of the table.
2024-12-15 19:15:12 +08:00
2025-02-04 11:54:29 +08:00
#### tail
Show the last `n` (the default is 10) rows of the table.
2024-12-15 19:15:12 +08:00
2025-02-04 11:54:29 +08:00
#### 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 column|row \<name1\> \<name2\> ...
2025-02-04 11:58:22 +08:00
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 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.