-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from markgpritchard/positionalarguments
Positionalarguments
- Loading branch information
Showing
6 changed files
with
742 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
module TableOneCategoricalVariables | ||
|
||
using TableOne | ||
using CategoricalArrays | ||
|
||
TableOne.binvariabledisplay(v, varvect::CategoricalArray, binvardisplay::Nothing) = maximum(varvect) | ||
|
||
function TableOne.cramvariable(strata, stratanames, strataids, varvect::CategoricalArray, varname; kwargs...) | ||
lvls = levels(varvect) | ||
return TableOne.cramvariable(strata, stratanames, strataids, varvect, varname, lvls; kwargs...) | ||
end | ||
|
||
function TableOne.catvariable(strata, stratanames, strataids, varvect::CategoricalArray, varname; kwargs...) | ||
lvls = levels(varvect) | ||
return TableOne.catvariable(strata, stratanames, strataids, varvect, varname, lvls; kwargs...) | ||
end | ||
|
||
end # module TableOneCategoricalVariables |
Oops, something went wrong.