Skip to content

Commit

Permalink
support abstract strings in empairs
Browse files Browse the repository at this point in the history
  • Loading branch information
palday committed Mar 13, 2024
1 parent d743f25 commit 1e76947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/emmeans.jl
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ function empairs(df::AbstractDataFrame; eff_col, err_col=:err, padjust=identity)
pairs = combinations(eachrow(df), 2)
# TODO make this more efficient in allocations
result_df = mapreduce(vcat, pairs) do (df1, df2)
result = Dict{String,Union{String,Number}}()
result = Dict{String,Union{AbstractString,Number}}()

for col in names(df1, Not(stats_cols))
result[col] = if df1[col] == df2[col]
Expand Down

0 comments on commit 1e76947

Please sign in to comment.