Skip to content

Commit eadedcc

Browse files
committed
improve + fix typos
1 parent 98d2c50 commit eadedcc

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

src/byrow/doc.jl

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Perform a row-wise operation specified by `fun` on selected columns `cols`. Gene
151151
Sum results of calling function `by` on each element of each row of `ds`. If `cols` is not specified, `byrow`
152152
computes sum for all numeric columns in `ds`.
153153
154-
Passing `threads = false` disables multitrheaded computations.
154+
Passing `threads = false` disables multithreaded computations.
155155
156156
Missing values are removed from the calculation. When all values in a row are missing, it returns `missing`.
157157
@@ -180,7 +180,7 @@ julia> byrow(ds, sum, :)
180180
Compute mean of the results of calling function `by` on each element of each row of `ds`. If `cols` is not specified, `byrow`
181181
computes mean for all numeric columns in `ds`.
182182
183-
Passing `threads = false` disables multitrheaded computations.
183+
Passing `threads = false` disables multithreaded computations.
184184
185185
Missing values are removed from the calculation. When all values in a row are missing, it returns `missing`.
186186
@@ -213,9 +213,9 @@ change this to the formatted values.
213213
214214
Each columns in `cols` may have its own `by`. This may be achieved by passing a vector of predicates to `by`.
215215
216-
Passing `threads = false` disables multitrheaded computations.
216+
Passing `threads = false` disables multithreaded computations.
217217
218-
See [`filter`](@ref) or [`filter!`](@ref)
218+
See [`filter`](@ref), [`filter!`](@ref), [`delete`](@ref), [`delete!`](@ref)
219219
220220
## Example
221221
@@ -246,9 +246,9 @@ change this to the formatted values.
246246
247247
Each columns in `cols` may have its own `by`. This may be achieved by passing a vector of predicates to `by`.
248248
249-
Passing `threads = false` disables multitrheaded computations.
249+
Passing `threads = false` disables multithreaded computations.
250250
251-
See [`filter`](@ref) or [`filter!`](@ref)
251+
See [`filter`](@ref), [`filter!`](@ref), [`delete`](@ref), [`delete!`](@ref)
252252
253253
## Example
254254
@@ -274,7 +274,7 @@ julia> byrow(ds, any, :, by = [==(2), >(1)])
274274
275275
Count the number of elements in each row for selected columns which the function `by` returns `true`.
276276
277-
Passing `threads = false` disables multitrheaded computations.
277+
Passing `threads = false` disables multithreaded computations.
278278
279279
## Example
280280
@@ -301,7 +301,7 @@ julia> byrow(ds, count, :, by = isodd)
301301
Return the product of the results of calling function `by` on each element of each row of `ds`. If `cols` is not specified, `byrow`
302302
computes product for all numeric columns in `ds`.
303303
304-
Passing `threads = false` disables multitrheaded computations.
304+
Passing `threads = false` disables multithreaded computations.
305305
306306
Missing values are removed from the calculation. When all values in a row are missing, it returns `missing`.
307307
@@ -331,7 +331,7 @@ Returns a boolean vector which is `true` if all values in the corresponding row
331331
Optionally, a vector of values can be passed view the `with` keyword argument to compare values in selected
332332
columns with the passed vector.
333333
334-
Passing `threads = false` disables multitrheaded computations.
334+
Passing `threads = false` disables multithreaded computations.
335335
336336
See [`byrow(isless)`](@ref), [`byrow(in)`](@ref), [`byrow(issorted)`](@ref)
337337
@@ -378,7 +378,7 @@ Passing `rev = true` returns true if all values are greater than passed values v
378378
379379
By default, the comparison is done via `isless` function, however, user may change it by passing a function via the `lt` keyword argument. The function passed to `lt` must accept two arguments where it takes its first argument from `cols` and its second argument from `with`. However, if `rev = true` the function passed as `lt` will take its first argument from `with` and its second argument from `cols`. The function passed as `lt` must return `true` or `false`.
380380
381-
Passing `threads = false` disables multitrheaded computations.
381+
Passing `threads = false` disables multithreaded computations.
382382
383383
See [`byrow(isequal)`](@ref), [`byrow(in)`](@ref), [`byrow(issorted)`](@ref)
384384
@@ -446,7 +446,7 @@ Return a boolean vector which its elements are true if in a row the value of `it
446446
447447
The function passed as `eq` must accept two arguments where it takes its first argument from `item` and its second argument from `cols`. The function passed as `eq` must return `true` or `false`.
448448
449-
Passing `threads = false` disables multitrheaded computations.
449+
Passing `threads = false` disables multithreaded computations.
450450
451451
See [`byrow(isequal)`](@ref), [`byrow(isless)`](@ref), [`byrow(issorted)`](@ref)
452452
@@ -497,7 +497,7 @@ julia> byrow(ds, in, r"x", item = [5,4,5,4,5,4], eq = (x,y) -> x+y == 11)
497497
498498
Return the column name of the first `true` value in `cols` or for which `by` returns `true`. If no such value is found, it returns `missing`. User can pass a vector of values or a column name to `item` to find the column name of the first time that the value of `item` is equal to the value of the column. User may use a customised function for checking the equlity of `item` and `columns` by passing it to the `eq` keyword argument. The function passed as `eq` must be a binary function where its first argument is from `item` and its second argument is from `col`.
499499
500-
Passing `threads = false` disables multitrheaded computations.
500+
Passing `threads = false` disables multithreaded computations.
501501
502502
See [`byrow(findlast)`](@ref), [`byrow(select)`](@ref)
503503
@@ -557,7 +557,7 @@ julia> byrow(ds, select, :, with = byrow(ds, findfirst, :, by = isodd))
557557
558558
Return the column name of the last `true` value in `cols` or for which `by` returns `true`. If no such value is found, it returns `missing`. User can pass a vector of values or a column name to `item` to find the column name of the last time that the value of `item` is equal to the value of the column. User may use a customised function for checking the equlity of `item` and `columns` by passing it to the `eq` keyword argument. The function passed as `eq` must be a binary function where its first argument is from `item` and its second argument is from `col`.
559559
560-
Passing `threads = false` disables multitrheaded computations.
560+
Passing `threads = false` disables multithreaded computations.
561561
562562
See [`byrow(findfirst)`](@ref), [`byrow(select)`](@ref)
563563
@@ -619,7 +619,7 @@ Select value of `with` among `cols`. The `with` must be a vector of column names
619619
620620
For heterogeneous column types, `byrow` use `promote_type` for the output. If the column select doesn't exist among `cols`, `byrow` returns `missing`.
621621
622-
Passing `threads = false` disables multitrheaded computations.
622+
Passing `threads = false` disables multithreaded computations.
623623
624624
See [`byrow(findfirst)`](@ref), [`byrow(findlast)`](@ref)
625625
@@ -685,7 +685,7 @@ Fill missing (default behaviour) values in `cols` with values from `with`. User
685685
686686
When `rolling = true`, `byrow` uses `with` to fill the missing values in the first column among `cols` and replace `with` with the updated values in the first column and uses these values to fill the missing values in the second column among `cols` and replace `with` with the updated values in the second column, and continues this process.
687687
688-
Passing `threads = false` disables multitrheaded computations.
688+
Passing `threads = false` disables multithreaded computations.
689689
690690
`fill!` is a special `byrow` operations, because it changes the input data set rather than producing a vector.
691691
@@ -764,7 +764,7 @@ See [`byrow(fill!)`](@ref)
764764
765765
Return the first value in each row of `cols` which is not equal to `missing`, if any. Otherwise return `missing`.
766766
767-
Passing `threads = false` disables multitrheaded computations.
767+
Passing `threads = false` disables multithreaded computations.
768768
769769
See [`byrow(select)`](@ref), [`byrow(findfirst)`](@ref), [`byrow(findlast)`](@ref)
770770
@@ -800,7 +800,7 @@ returns maximum for all numeric columns in `ds`.
800800
801801
Missing values are removed from the calculation. When all values in a row are missing, it returns `missing`.
802802
803-
Passing `threads = false` disables multitrheaded computations.
803+
Passing `threads = false` disables multithreaded computations.
804804
805805
See [`byrow(minimum)`](@ref), [`byrow(argmax)`](@ref), [`byrow(argmin)`](@ref)
806806
@@ -837,7 +837,7 @@ returns minimum for all numeric columns in `ds`.
837837
838838
Missing values are removed from the calculation. When all values in a row are missing, it returns `missing`.
839839
840-
Passing `threads = false` disables multitrheaded computations.
840+
Passing `threads = false` disables multithreaded computations.
841841
842842
See [`byrow(maximum)`](@ref), [`byrow(argmax)`](@ref), [`byrow(argmin)`](@ref)
843843
@@ -874,7 +874,7 @@ passes all numeric columns in `ds`.
874874
875875
Missing values are removed from the calculation. When all values in a row are missing, it returns `missing`.
876876
877-
Passing `threads = false` disables multitrheaded computations.
877+
Passing `threads = false` disables multithreaded computations.
878878
879879
See [`byrow(maximum)`](@ref), [`byrow(minimum)`](@ref), [`byrow(argmin)`](@ref)
880880
@@ -910,7 +910,7 @@ passes all numeric columns in `ds`.
910910
911911
Missing values are removed from the calculation. When all values in a row are missing, it returns `missing`.
912912
913-
Passing `threads = false` disables multitrheaded computations.
913+
Passing `threads = false` disables multithreaded computations.
914914
915915
See [`byrow(maximum)`](@ref), [`byrow(minimum)`](@ref), [`byrow(argmax)`](@ref)
916916
@@ -945,7 +945,7 @@ Test whether the values in rows (in selected `cols`) are in sorted order. Passin
945945
946946
Missing values are larger than any other values. User may pass a customised funtion to `lt` to skip missing values.
947947
948-
Passing `threads = false` disables multitrheaded computations.
948+
Passing `threads = false` disables multithreaded computations.
949949
950950
See [`byrow(isequal)`](@ref), [`byrow(isless)`](@ref), [`byrow(in)`](@ref)
951951
@@ -990,13 +990,13 @@ julia> byrow(ds, issorted, :, lt = !isequal)
990990
991991
For each row and selected columns convert values to string and join them into a single string, inserting the given delimiter (if any) between adjacent strings. If `last` is given, it will be used instead of `delim` between the last two strings. Missing values are converted to empty string and `true` and `false` converted to `1` and `0`, respectively.
992992
993-
Passing `threads = false` disables multitrheaded computations.
993+
Passing `threads = false` disables multithreaded computations.
994994
@@@@hash@@@@
995995
byrow(ds::AbstractDataset, hash, cols; [by = identity, threads])
996996
997997
Compute an integer hash code of result of calling `by` on each values in each row of selected `cols`. When `cols` is not specified `byrow` compute hash code for all columns in `ds`.
998998
999-
Passing `threads = false` disables multitrheaded computations.
999+
Passing `threads = false` disables multithreaded computations.
10001000
@@@@nunique@@@@
10011001
byrow(ds::AbstractDataset, nunique, cols; [by = identity, count_missing = true])
10021002
@@ -1012,7 +1012,7 @@ Compute the variance of result of calling `by` on each value in each row of `ds`
10121012
10131013
Missing values are droped from calculations, and when all values in a row are `missing` it returns `missing`.
10141014
1015-
Passing `threads = false` disables multitrheaded computations.
1015+
Passing `threads = false` disables multithreaded computations.
10161016
10171017
# Examples
10181018
```jldoctest
@@ -1045,7 +1045,7 @@ Compute the standard deviation of result of calling `by` on each value in each r
10451045
10461046
Missing values are droped from calculations, and when all values in a row are `missing` it returns `missing`.
10471047
1048-
Passing `threads = false` disables multitrheaded computations.
1048+
Passing `threads = false` disables multithreaded computations.
10491049
10501050
# Examples
10511051
```jldoctest
@@ -1076,7 +1076,7 @@ julia> byrow(ds, std, :, dof = false)
10761076
10771077
Replace each value in `cols` by the result of `cumsum` on each row. When `cols` is not specified `byrow` replace every numeric columns. The type of selected column will be promoted to be able to contain the result of computations. By default missing values are filled with the result of preceding calculations, and passing `missings = :skip` leaves `missing` values untouched.
10781078
1079-
Passing `threads = false` disables multitrheaded computations.
1079+
Passing `threads = false` disables multithreaded computations.
10801080
10811081
See [`byrow(cumsum)`](@ref), [`byrow(cumprod!)`](@ref), [`byrow(cummax!)`](@ref), [`byrow(cummin!)`](@ref)
10821082
@@ -1132,7 +1132,7 @@ Variant of `byrow(cumsum!)` which pass a copy of `ds` and leave `ds` untouched.
11321132
11331133
Replace each value in `cols` by the result of `cumprod` on each row. When `cols` is not specified `byrow` replace every numeric columns. The type of selected column will be promoted to be able to contain the result of computations. By default missing values are filled with the result of preceding calculations, and passing `missings = :skip` leaves `missing` values untouched.
11341134
1135-
Passing `threads = false` disables multitrheaded computations.
1135+
Passing `threads = false` disables multithreaded computations.
11361136
11371137
See [`byrow(cumprod)`](@ref), [`byrow(cumsum!)`](@ref), [`byrow(cummax!)`](@ref), [`byrow(cummin!)`](@ref)
11381138
@@@@cumprod@@@@
@@ -1145,7 +1145,7 @@ Variant of `byrow(cumprod!)` which pass a copy of `ds` and leave `ds` untouched.
11451145
11461146
Replace each value in `cols` by the result of cumulative maximum on each row. When `cols` is not specified `byrow` replace every numeric columns. The type of selected column will be promoted to be able to contain the result of computations. By default missing values are filled with the result of preceding calculations, and passing `missings = :skip` leaves `missing` values untouched.
11471147
1148-
Passing `threads = false` disables multitrheaded computations.
1148+
Passing `threads = false` disables multithreaded computations.
11491149
11501150
See [`byrow(cummax)`](@ref), [`byrow(cumsum!)`](@ref), [`byrow(cumprod!)`](@ref), [`byrow(cummin!)`](@ref)
11511151
@@@@cummax@@@@
@@ -1157,7 +1157,7 @@ Variant of `byrow(cummax!)` which pass a copy of `ds` and leave `ds` untouched.
11571157
11581158
Replace each value in `cols` by the result of cumulative minimum on each row. When `cols` is not specified `byrow` replaces every numeric columns. The type of selected column will be promoted to be able to contain the result of computations. By default missing values are filled with the result of preceding calculations, and passing `missings = :skip` leaves `missing` values untouched.
11591159
1160-
Passing `threads = false` disables multitrheaded computations.
1160+
Passing `threads = false` disables multithreaded computations.
11611161
11621162
See [`byrow(cummin)`](@ref), [`byrow(cumsum!)`](@ref), [`byrow(cumprod!)`](@ref), [`byrow(cummax!)`](@ref)
11631163
@@@@cummin@@@@
@@ -1169,7 +1169,7 @@ Variant of `byrow(cummin!)` which pass a copy of `ds` and leave `ds` untouched.
11691169
11701170
Update `ds` in place with sorted values in each row of selected `cols`. When `cols` is not specified `byrow` uses every numeric columns. User can pass any keyword argument support by Julia `sort` function. Columns in `cols` will be promoted to be able to contain the new sorted values.
11711171
1172-
Passing `threads = false` disables multitrheaded computations.
1172+
Passing `threads = false` disables multithreaded computations.
11731173
11741174
See [`byrow(sort)`](@ref), [`sort!`](@ref)
11751175
@@ -1224,7 +1224,7 @@ Variant of `byrow(sort!)` which pass a copy of `ds` and leave `ds` untouched.
12241224
12251225
Replace each value in each row of `ds` for selected `cols` by its standardised values.
12261226
1227-
Passing `threads = false` disables multitrheaded computations.
1227+
Passing `threads = false` disables multithreaded computations.
12281228
12291229
See [`byrow(stdze)`](@ref)
12301230
@@@@stdze@@@@

0 commit comments

Comments
 (0)