shenwei356 / csvtk

A cross-platform, efficient and practical CSV/TSV toolkit in Golang
http://bioinf.shenwei.me/csvtk
MIT License
992 stars 84 forks source link

Feature request: a flag to rename fields for summary command #273

Open stas-malavin opened 4 months ago

stas-malavin commented 4 months ago

Hello,

How about a possibility to rename columns right inside the summary command? Or just to keep them as is without adding the actual summary function to the column name.

Motivation: if it's in a pipeline, I don't want long [changing] names, as I'll address the summarized fields later in the pipeline. I know I can add-header, but that's a whole extra command.

shenwei356 commented 3 months ago

That makes sense. I added the function methods to the column names to make them distinct. I'll add an option to disable this.