Skip to content

Commit d851d07

Browse files
committed
Update byrow.md
1 parent da10af4 commit d851d07

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/src/man/byrow.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,12 @@ julia> byrow(ds, fill, 1:2, with = [0,2,1], by = x->ismissing(x) || isequal(x, 1
328328
the cumulative functions calculate the cumulative min, max, sum, and product, `sort` sorts the values in each row, and `stdze` standardises the values in each row. The `sort` operation accepts all keyword arguments that the function `sort` in Julia Base accept.
329329

330330
```jldoctest
331+
julia> ds = Dataset(g = [1, 1, 1, 2, 2],
332+
x1_int = [0, 0, 1, missing, 2],
333+
x2_int = [3, 2, 1, 3, -2],
334+
x1_float = [1.2, missing, -1.0, 2.3, 10],
335+
x2_float = [missing, missing, 3.0, missing, missing],
336+
x3_float = [missing, missing, -1.4, 3.0, -100.0]);
331337
julia> byrow(ds, cumsum, 1:3)
332338
5×6 Dataset
333339
Row │ g x1_int x2_int x1_float x2_float x3_float

0 commit comments

Comments
 (0)