Also fix broadcast on dict

This commit is contained in:
Michael Krabbe Borregaard 2018-08-23 16:51:15 +02:00
parent 28ac117d68
commit 8d4ab6bb94

View File

@ -599,7 +599,7 @@ function groupedvec2mat(x_ind, x, y::AbstractArray, groupby, def_val = y[1])
for i in 1:length(groupby.groupLabels) for i in 1:length(groupby.groupLabels)
xi = x[groupby.groupIds[i]] xi = x[groupby.groupIds[i]]
yi = y[groupby.groupIds[i]] yi = y[groupby.groupIds[i]]
y_mat[getindex.(x_ind, xi), i] = yi y_mat[getindex.(Ref(x_ind), xi), i] = yi
end end
return y_mat return y_mat
end end