diff --git a/docs/src/manpage.md b/docs/src/manpage.md index eb35c6611..4e7d229ef 100644 --- a/docs/src/manpage.md +++ b/docs/src/manpage.md @@ -1837,6 +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. -f {a,b,c} Value-field names on which to compute statistics -g {d,e,f} Optional group-by-field names @@ -1859,6 +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 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 62d3f38a6..4a4809c7d 100644 --- a/docs/src/manpage.txt +++ b/docs/src/manpage.txt @@ -1816,6 +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. -f {a,b,c} Value-field names on which to compute statistics -g {d,e,f} Optional group-by-field names @@ -1838,6 +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 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 4d738c70a..1744fba97 100644 --- a/docs/src/reference-verbs.md +++ b/docs/src/reference-verbs.md @@ -3292,6 +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. -f {a,b,c} Value-field names on which to compute statistics -g {d,e,f} Optional group-by-field names @@ -3314,6 +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 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/manpage.txt b/man/manpage.txt index 62d3f38a6..4a4809c7d 100644 --- a/man/manpage.txt +++ b/man/manpage.txt @@ -1816,6 +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. -f {a,b,c} Value-field names on which to compute statistics -g {d,e,f} Optional group-by-field names @@ -1838,6 +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 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 e40a79860..75db85828 100644 --- a/man/mlr.1 +++ b/man/mlr.1 @@ -2285,6 +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. -f {a,b,c} Value-field names on which to compute statistics -g {d,e,f} Optional group-by-field names @@ -2307,6 +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 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 0cf5dbc8b..ba28c57c0 100644 --- a/test/cases/cli-help/0001/expout +++ b/test/cases/cli-help/0001/expout @@ -1033,6 +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. -f {a,b,c} Value-field names on which to compute statistics -g {d,e,f} Optional group-by-field names @@ -1055,6 +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 Please see https://miller.readthedocs.io/en/latest/reference-verbs.html#filter or https://en.wikipedia.org/wiki/Moving_average#Exponential_moving_average