You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
x >0||throw(ArgumentError("The number x must be positive"))
33
33
x > g.ngroups && (g.ngroups = x)
34
-
@inbounds g.refs[i] = x
34
+
@inbounds g.groups[i] = x
35
35
end
36
36
37
37
Base.@propagate_inboundsfunction Base.setindex!(g::GroupedArray{T}, ::Missing, i::Number) where {T >:Missing}
38
38
@boundscheckcheckbounds(g, i)
39
-
@inbounds g.refs[i] =0
39
+
@inbounds g.groups[i] =0
40
40
end
41
41
"""
42
42
Constructor for GroupedArrays
43
43
44
-
GroupedArray constructor always promises that all elements between 1 and ngroups (included) are presented in refs. However, this is not necessarly true aftewards (setindex! does not check that the replaced ref corresponds to the last one)
44
+
GroupedArray constructor always promises that all elements between 1 and ngroups (included) are presented in groups. However, this is not necessarly true aftewards (setindex! does not check that the replaced ref corresponds to the last one)
45
45
46
46
if coalesce = true, missing values are associated an integer
47
47
if sort = false, groups are created in order of appearances. If sort = true, groups are sorted. If sort = nothing, fastest algorithm is used.
0 commit comments