Also fix broadcast on dict
This commit is contained in:
parent
28ac117d68
commit
8d4ab6bb94
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user