Skip to content

Commit 04e462e

Browse files
authored
typos (#355)
1 parent 03d5d98 commit 04e462e

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

docs/src/dplyr.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ To install DataFramesMeta.jl, which also installs DataFrames.jl:
3030

3131
```julia
3232
import Pkg
33-
Pkg.activate(; temp=true) # activate a temprary environment for this tutorial
33+
Pkg.activate(; temp=true) # activate a temporary environment for this tutorial
3434
Pkg.add("DataFramesMeta");
3535
```
3636

@@ -211,7 +211,7 @@ msleep_1 = @select msleep :name :sleep_total
211211
msleep_2 = @rsubset msleep_1 :sleep_total > 16
212212
```
213213

214-
Now in this case, we will pipe the msleep data frame to the function that will select two columns (`:name` and `:sleep_total`) and then pipe the new data frame to the `@rsubset` opertaion. This method involves awkwardly creating and naming temporary data frames. We can avoid this with `@chain`.
214+
Now in this case, we will pipe the msleep data frame to the function that will select two columns (`:name` and `:sleep_total`) and then pipe the new data frame to the `@rsubset` operation. This method involves awkwardly creating and naming temporary data frames. We can avoid this with `@chain`.
215215

216216
```@repl 1
217217
@chain msleep begin

docs/src/index.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ julia> @rtransform df @passmissing :x = parse(Int, :x_str)
421421
## Passing keyword arguments to underlying DataFrames.jl functions
422422

423423
All DataFramesMeta.jl macros allow passing of keyword arguments to their DataFrames.jl
424-
function equivelents. The table below describes the correspondence between DataFramesMeta.jl
424+
function equivalents. The table below describes the correspondence between DataFramesMeta.jl
425425
macros and the function that is actually called by the macro.
426426

427427
| Macro | Base DataFrames.jl function called |
@@ -634,7 +634,7 @@ inside the expression. The command
634634

635635
will fail.
636636

637-
Finally, note that everyting inside `AsTable` is escaped by default.
637+
Finally, note that everything inside `AsTable` is escaped by default.
638638
There is no ned to use `$` inside `AsTable` on the right-hand side.
639639
For example
640640

@@ -821,7 +821,7 @@ Not all functions in DataFrames.jl allow for multi-column selectors, so detailed
821821
subset(df, [:a, :b])
822822
```
823823

824-
will fail in DataFrames.jl, bcause `DataFrames.subset` does not support vectors of column names. Likewise, `@subset df $[:a, :b]` will fail. The macros which support multi-column selectors are
824+
will fail in DataFrames.jl, because `DataFrames.subset` does not support vectors of column names. Likewise, `@subset df $[:a, :b]` will fail. The macros which support multi-column selectors are
825825

826826
* `@select`
827827
* `@transform` (multi-argument selectors have no effect)

src/macros.jl

+4-4
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ julia> df
183183
184184
### Comparison with `@.` and Base broadcasting
185185
186-
Base Julia provides the broadasting macro `@.` and in many cases `@.`
186+
Base Julia provides the broadcasting macro `@.` and in many cases `@.`
187187
and `@byrow` will give equivalent results. But there are important
188188
deviations in behavior. Consider the setup
189189
@@ -1848,7 +1848,7 @@ using broadcasting.
18481848
18491849
To avoid writing `@byrow` multiple times when performing multiple
18501850
transformations by row, `@select` allows `@byrow` at the
1851-
beginning of a block of selectations (i.e. `@byrow begin... end`).
1851+
beginning of a block of selections (i.e. `@byrow begin... end`).
18521852
All transformations in the block will operate by row.
18531853
18541854
$ASTABLE_MACRO_FLAG_DOCS
@@ -2261,7 +2261,7 @@ end
22612261
##############################################################################
22622262

22632263
function by_helper(x, what, args...)
2264-
# Handle keyword arguments initially due the gouping instruction, what
2264+
# Handle keyword arguments initially due the grouping instruction, what
22652265
if x isa Expr && x.head === :parameters
22662266
# with keyword arguments, everything is shifted to
22672267
# the right
@@ -2440,7 +2440,7 @@ end
24402440
"""
24412441
@distinct(d, args...)
24422442
2443-
Return the first occurence of unique rows in an `AbstractDataFrame` according
2443+
Return the first occurrence of unique rows in an `AbstractDataFrame` according
24442444
to given combinations of values in selected columns or their transformation.
24452445
`args` can be most column selectors or transformation accepted by `select`.
24462446
Users should note that `@distinct` differs from `unique` in DataFrames.jl,

src/parsing.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ call later on.
231231
232232
If `wrap_byrow=true` then the function gets wrapped
233233
in `ByRow`. If the expression begins with `@byrow`,
234-
then `get_source_fun` is recurively called on the
234+
then `get_source_fun` is recursively called on the
235235
expression that `@byrow` acts on, with `wrap_byrow=true`.
236236
237237
### Examples

test/astable_flag.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ end
200200

201201
@testset "errors with passmissing" begin
202202
@eval df = DataFrame(y = 1)
203-
@test_throws LoadError @eval @transform df @passmising @byrow @astable :x = 2
203+
@test_throws LoadError @eval @transform df @passmissing @byrow @astable :x = 2
204204
@test_throws LoadError @eval @transform df @byrow @astable @passmissing :x = 2
205205
@test_throws LoadError @eval @transform df @astable @passmissing @byrow :x = 2
206206
@test_throws LoadError @eval @rtransform df @astable @passmissing :x = 2

test/parsing.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ macro protect(x)
1010
esc(DataFramesMeta.get_column_expr(x))
1111
end
1212

13-
@testset "Returning columnn identifiers" begin
13+
@testset "Returning column identifiers" begin
1414

1515
v_sym = @protect $[:a, :b]
1616
@test v_sym == [:a, :b]

0 commit comments

Comments
 (0)