Skip to content

Commit

Permalink
Fix one more docstring error and update README and index.
Browse files Browse the repository at this point in the history
  • Loading branch information
Karandeep Singh committed Nov 18, 2023
1 parent 6811251 commit 5656c87
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ TidierData.jl currently supports the following top-level macros:
- `@mutate()` and `@transmute()`
- `@summarize()` and `@summarise()`
- `@filter()`
- `@slice()` and `@slice_sample()`
- `@slice()`, `@slice_sample()`, `@slice_min()`, and `@slice_max()`
- `@group_by()` and `@ungroup()`
- `@arrange()`
- `@pull()`
Expand Down
2 changes: 1 addition & 1 deletion docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ TidierData.jl currently supports the following top-level macros:
- `@mutate()` and `@transmute()`
- `@summarize()` and `@summarise()`
- `@filter()`
- `@slice()` and `@slice_sample()`
- `@slice()`, `@slice_sample()`, `@slice_min()`, and `@slice_max()`
- `@group_by()` and `@ungroup()`
- `@arrange()`
- `@pull()`
Expand Down
25 changes: 13 additions & 12 deletions src/docstrings.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2467,7 +2467,7 @@ julia> @chain df begin
@slice_max(b)
end
2×3 DataFrame
Row │ a b c
Row │ a b c
│ Float64? Float64? Float64?
─────┼──────────────────────────────
1 │ 5.0 7.0 5.0
Expand All @@ -2477,26 +2477,26 @@ julia> @chain df begin
@slice_max(b, with_ties = false)
end
1×3 DataFrame
Row │ a b c
Row │ a b c
│ Float64? Float64? Float64?
─────┼──────────────────────────────
1 │ 5.0 7.0 5.0
julia> @chain df begin
@slice_max(dt2, with_ties = false, n = 2)
@slice_max(b, with_ties = false, n = 2)
end
2×3 DataFrame
Row │ a b c
Row │ a b c
│ Float64? Float64? Float64?
─────┼──────────────────────────────
1 │ 5.0 7.0 5.0
2 │ 6.0 7.0 6.0
julia> @chain df begin
@slice_max(b, prop = .5, missing_rm = true)
@slice_max(b, prop = 0.5, missing_rm = true)
end
3×3 DataFrame
Row │ a b c
Row │ a b c
│ Float64? Float64? Float64?
─────┼──────────────────────────────
1 │ 5.0 7.0 5.0
Expand Down Expand Up @@ -2530,17 +2530,17 @@ julia> @chain df begin
@slice_min(b)
end
2×3 DataFrame
Row │ a b c
Row │ a b c
│ Float64? Float64? Float64?
─────┼───────────────────────────────
1 │ missing 0.3 0.2
2 │ missing 0.3 missing
2 │ missing 0.3 missing
julia> @chain df begin
@slice_min(b, with_ties = false)
end
1×3 DataFrame
Row │ a b c
Row │ a b c
│ Float64? Float64? Float64?
─────┼──────────────────────────────
1 │ missing 0.3 0.2
Expand All @@ -2549,17 +2549,18 @@ julia> @chain df begin
@slice_min(b, with_ties = true, n = 1)
end
2×3 DataFrame
Row │ a b c
Row │ a b c
│ Float64? Float64? Float64?
─────┼───────────────────────────────
1 │ missing 0.3 0.2
2 │ missing 0.3 missing
julia> @chain df begin
@slice_min(b, prop = .5, missing_rm = true)
@slice_min(b, prop = 0.5, missing_rm = true)
end
3×3 DataFrame
Row │ a b c
Row │ a b c
│ Float64? Float64? Float64?
─────┼────────────────────────────────
1 │ missing 0.3 0.2
Expand Down

0 comments on commit 5656c87

Please sign in to comment.