From be92d859076e308c3f87dc2764d735f1e2534ce9 Mon Sep 17 00:00:00 2001 From: John Kerl Date: Mon, 24 Jan 2022 16:31:35 -0500 Subject: [PATCH] Fix slwin-7-2 -> slwin_7_2 doc info --- docs/src/manpage.md | 4 ++-- docs/src/manpage.txt | 4 ++-- docs/src/reference-verbs.md | 4 ++-- internal/pkg/transformers/step.go | 4 ++-- man/manpage.txt | 4 ++-- man/mlr.1 | 4 ++-- test/cases/cli-help/0001/expout | 4 ++-- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/docs/src/manpage.md b/docs/src/manpage.md index 672ac68e5..9cde59c02 100644 --- a/docs/src/manpage.md +++ b/docs/src/manpage.md @@ -1837,7 +1837,7 @@ VERBS shift Alias for shift_lag shift_lag Include value(s) in field(s) from the previous record, if any shift_lead Include value(s) in field(s) from the next record, if any - slwin Sliding-window averages over m records back and n forward. E.g. slwin-7-2 for 7 back and 2 forward. + slwin Sliding-window averages over m records back and n forward. E.g. slwin_7_2 for 7 back and 2 forward. -f {a,b,c} Value-field names on which to compute statistics -g {d,e,f} Optional group-by-field names @@ -1860,7 +1860,7 @@ VERBS mlr step -a ewma -d 0.1,0.9 -f x,y mlr step -a ewma -d 0.1,0.9 -o smooth,rough -f x,y mlr step -a ewma -d 0.1,0.9 -o smooth,rough -f x,y -g group_name - mlr step -a slwin-9-0,slwin-0-9 -f x + mlr step -a slwin_9_0,slwin_0_9 -f x Please see https://miller.readthedocs.io/en/latest/reference-verbs.html#filter or https://en.wikipedia.org/wiki/Moving_average#Exponential_moving_average diff --git a/docs/src/manpage.txt b/docs/src/manpage.txt index 364cc38ca..e28d9edde 100644 --- a/docs/src/manpage.txt +++ b/docs/src/manpage.txt @@ -1816,7 +1816,7 @@ VERBS shift Alias for shift_lag shift_lag Include value(s) in field(s) from the previous record, if any shift_lead Include value(s) in field(s) from the next record, if any - slwin Sliding-window averages over m records back and n forward. E.g. slwin-7-2 for 7 back and 2 forward. + slwin Sliding-window averages over m records back and n forward. E.g. slwin_7_2 for 7 back and 2 forward. -f {a,b,c} Value-field names on which to compute statistics -g {d,e,f} Optional group-by-field names @@ -1839,7 +1839,7 @@ VERBS mlr step -a ewma -d 0.1,0.9 -f x,y mlr step -a ewma -d 0.1,0.9 -o smooth,rough -f x,y mlr step -a ewma -d 0.1,0.9 -o smooth,rough -f x,y -g group_name - mlr step -a slwin-9-0,slwin-0-9 -f x + mlr step -a slwin_9_0,slwin_0_9 -f x Please see https://miller.readthedocs.io/en/latest/reference-verbs.html#filter or https://en.wikipedia.org/wiki/Moving_average#Exponential_moving_average diff --git a/docs/src/reference-verbs.md b/docs/src/reference-verbs.md index 282b83dd3..bd74fa02f 100644 --- a/docs/src/reference-verbs.md +++ b/docs/src/reference-verbs.md @@ -3292,7 +3292,7 @@ Options: shift Alias for shift_lag shift_lag Include value(s) in field(s) from the previous record, if any shift_lead Include value(s) in field(s) from the next record, if any - slwin Sliding-window averages over m records back and n forward. E.g. slwin-7-2 for 7 back and 2 forward. + slwin Sliding-window averages over m records back and n forward. E.g. slwin_7_2 for 7 back and 2 forward. -f {a,b,c} Value-field names on which to compute statistics -g {d,e,f} Optional group-by-field names @@ -3315,7 +3315,7 @@ Examples: mlr step -a ewma -d 0.1,0.9 -f x,y mlr step -a ewma -d 0.1,0.9 -o smooth,rough -f x,y mlr step -a ewma -d 0.1,0.9 -o smooth,rough -f x,y -g group_name - mlr step -a slwin-9-0,slwin-0-9 -f x + mlr step -a slwin_9_0,slwin_0_9 -f x Please see https://miller.readthedocs.io/en/latest/reference-verbs.html#filter or https://en.wikipedia.org/wiki/Moving_average#Exponential_moving_average diff --git a/internal/pkg/transformers/step.go b/internal/pkg/transformers/step.go index 87e90c475..07bc3fea2 100644 --- a/internal/pkg/transformers/step.go +++ b/internal/pkg/transformers/step.go @@ -135,7 +135,7 @@ func transformerStepUsage( fmt.Fprintf(o, " mlr %s -a ewma -d 0.1,0.9 -f x,y\n", verbNameStep) fmt.Fprintf(o, " mlr %s -a ewma -d 0.1,0.9 -o smooth,rough -f x,y\n", verbNameStep) fmt.Fprintf(o, " mlr %s -a ewma -d 0.1,0.9 -o smooth,rough -f x,y -g group_name\n", verbNameStep) - fmt.Fprintf(o, " mlr %s -a slwin-9-0,slwin-0-9 -f x\n", verbNameStep) + fmt.Fprintf(o, " mlr %s -a slwin_9_0,slwin_0_9 -f x\n", verbNameStep) fmt.Fprintf(o, "\n") fmt.Fprintf(o, "Please see https://miller.readthedocs.io/en/latest/reference-verbs.html#filter or\n") @@ -638,7 +638,7 @@ var STEPPER_LOOKUP_TABLE = []tStepperLookup{ ownsPrefix: stepperSlwintOwnsPrefix, stepperInputFromName: stepperSlwinInputFromName, stepperAllocator: stepperSlwinAlloc, - desc: "Sliding-window averages over m records back and n forward. E.g. slwin-7-2 for 7 back and 2 forward.", + desc: "Sliding-window averages over m records back and n forward. E.g. slwin_7_2 for 7 back and 2 forward.", }, } diff --git a/man/manpage.txt b/man/manpage.txt index 364cc38ca..e28d9edde 100644 --- a/man/manpage.txt +++ b/man/manpage.txt @@ -1816,7 +1816,7 @@ VERBS shift Alias for shift_lag shift_lag Include value(s) in field(s) from the previous record, if any shift_lead Include value(s) in field(s) from the next record, if any - slwin Sliding-window averages over m records back and n forward. E.g. slwin-7-2 for 7 back and 2 forward. + slwin Sliding-window averages over m records back and n forward. E.g. slwin_7_2 for 7 back and 2 forward. -f {a,b,c} Value-field names on which to compute statistics -g {d,e,f} Optional group-by-field names @@ -1839,7 +1839,7 @@ VERBS mlr step -a ewma -d 0.1,0.9 -f x,y mlr step -a ewma -d 0.1,0.9 -o smooth,rough -f x,y mlr step -a ewma -d 0.1,0.9 -o smooth,rough -f x,y -g group_name - mlr step -a slwin-9-0,slwin-0-9 -f x + mlr step -a slwin_9_0,slwin_0_9 -f x Please see https://miller.readthedocs.io/en/latest/reference-verbs.html#filter or https://en.wikipedia.org/wiki/Moving_average#Exponential_moving_average diff --git a/man/mlr.1 b/man/mlr.1 index 51969b913..f0ceddaf6 100644 --- a/man/mlr.1 +++ b/man/mlr.1 @@ -2285,7 +2285,7 @@ Options: shift Alias for shift_lag shift_lag Include value(s) in field(s) from the previous record, if any shift_lead Include value(s) in field(s) from the next record, if any - slwin Sliding-window averages over m records back and n forward. E.g. slwin-7-2 for 7 back and 2 forward. + slwin Sliding-window averages over m records back and n forward. E.g. slwin_7_2 for 7 back and 2 forward. -f {a,b,c} Value-field names on which to compute statistics -g {d,e,f} Optional group-by-field names @@ -2308,7 +2308,7 @@ Examples: mlr step -a ewma -d 0.1,0.9 -f x,y mlr step -a ewma -d 0.1,0.9 -o smooth,rough -f x,y mlr step -a ewma -d 0.1,0.9 -o smooth,rough -f x,y -g group_name - mlr step -a slwin-9-0,slwin-0-9 -f x + mlr step -a slwin_9_0,slwin_0_9 -f x Please see https://miller.readthedocs.io/en/latest/reference-verbs.html#filter or https://en.wikipedia.org/wiki/Moving_average#Exponential_moving_average diff --git a/test/cases/cli-help/0001/expout b/test/cases/cli-help/0001/expout index 6b32ea282..3da8c64e1 100644 --- a/test/cases/cli-help/0001/expout +++ b/test/cases/cli-help/0001/expout @@ -1033,7 +1033,7 @@ Options: shift Alias for shift_lag shift_lag Include value(s) in field(s) from the previous record, if any shift_lead Include value(s) in field(s) from the next record, if any - slwin Sliding-window averages over m records back and n forward. E.g. slwin-7-2 for 7 back and 2 forward. + slwin Sliding-window averages over m records back and n forward. E.g. slwin_7_2 for 7 back and 2 forward. -f {a,b,c} Value-field names on which to compute statistics -g {d,e,f} Optional group-by-field names @@ -1056,7 +1056,7 @@ Examples: mlr step -a ewma -d 0.1,0.9 -f x,y mlr step -a ewma -d 0.1,0.9 -o smooth,rough -f x,y mlr step -a ewma -d 0.1,0.9 -o smooth,rough -f x,y -g group_name - mlr step -a slwin-9-0,slwin-0-9 -f x + mlr step -a slwin_9_0,slwin_0_9 -f x Please see https://miller.readthedocs.io/en/latest/reference-verbs.html#filter or https://en.wikipedia.org/wiki/Moving_average#Exponential_moving_average