https://github.com/davidmchan/ustat
A micro-statistics program (like ministat) written in Rust
https://github.com/davidmchan/ustat
Last synced: about 1 year ago
JSON representation
A micro-statistics program (like ministat) written in Rust
- Host: GitHub
- URL: https://github.com/davidmchan/ustat
- Owner: DavidMChan
- License: mit
- Created: 2021-07-12T06:11:01.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-04-01T23:12:21.000Z (over 4 years ago)
- Last Synced: 2025-04-11T01:18:13.018Z (about 1 year ago)
- Language: Rust
- Size: 74.2 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.txt
- License: LICENSE
Awesome Lists containing this project
README
# ustat
[](https://app.fossa.com/projects/git%2Bgithub.com%2FDavidMChan%2Fustat?ref=badge_shield)
A micro-statistics program (like ministat) written in Rust which computes the sum, mean, median, min, max, standard deviation and a one-way ANOVA of a set of input files.
Installation
```
> cargo install ustat
```
If you don't have cargo, you can easily install it with:
```
> curl https://sh.rustup.rs -sSf | sh && source $HOME/.cargo/env
```
```
Usage:
ustat [OPTIONS] [FILE ...]
Compute statistics for the given input file(s).
Positional arguments:
file The input file(s) to compute statistics for (Use stdin
if not specified)
Optional arguments:
-h,--help Show this help message and exit
-c,--column COLUMN The column(s) to extract data from (Default: 0 for all
files, runs from 0 to ...)
-d,--delimiter DELIMITER
The text delimiter character to use between columns
(Default: ',')
-s,--skip-header Skip the first line of the input file (Default: False)
--no-anova Don't compute ANOVA for the input files (one file per
population) (Default: False)
-V,--version Show version
```
## Examples / Recipes
Compute basic statistics for column 0 of a CSV:
```bash
> cat file.csv | ustat
```
Compute basic statics and an ANOVA for three files (column 0 for each CSV file):
```bash
> ustat file_1.csv file_2.csv file_3.csv
```
Compute basic statistics for a TSV file:
```bash
> ustat -d '\t' file_1.tsv
```
Compute statistics for column 0 of file_1.csv and column 3 of file_2.csv:
```bash
> ustat -c 0 -c 3 file_1.csv file_2.csv
```
## License
[](https://app.fossa.com/projects/git%2Bgithub.com%2FDavidMChan%2Fustat?ref=badge_large)