Skip to content

Commit

Permalink
Update xlsout.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
mwsohn committed Jul 22, 2024
1 parent 74182bc commit 5a5a265
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/xlsout.jl
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,14 @@ does not need to be called before the function.
julia> bivariatexls(df,:incomecat,[:age,:race,:male,:bmicat],"test_workbook.xlsx","Bivariate")
```
"""
function bivariatexls(df::AbstractDataFrame, colvar::Symbol, rowvars::Vector{Symbol}, wbook::PyObject, wsheet::AbstractString;
wt::Symbol = nothing, row::Int = 0, col::Int = 0, column_percent::Bool = true, verbose::Bool = false)
function bivariatexls(df::AbstractDataFrame, colvar::Symbol, rowvars::Vector{Symbol}, wbook::PyObject, wsheet::AbstractString)
# ;
# wt::Symbol = nothing, row::Int = 0, col::Int = 0, column_percent::Bool = true, verbose::Bool = false)
wt = nothing
row = 0
col = 0
column_percent = false
verbose = false

# colvar has to be a CategoricalArray and must have 2 or more categories
if isa(df[!,colvar], CategoricalArray) == false || length(levels(df[!,colvar])) < 2
Expand Down

0 comments on commit 5a5a265

Please sign in to comment.