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
setname! function doesn't allow the name with Symbol format
For example,
a =NamedArray(zeros((3, 3)))
setnames!(a, ["a", "b", "c"], 1)
works well with following result:
3×3 Named Matrix{Float64}
A ╲ B │ 1 2 3
──────┼──────────────
a │ 0.0 0.0 0.0
b │ 0.0 0.0 0.0
c │ 0.0 0.0 0.0
However, for the index name with Symbol format like below:
a =NamedArray(zeros((3, 3)))
setnames!(a, [:a, :b, :c], d=1)
returns following error:
ERROR: TypeError: in setnames!, in second argument, expected String, got Type{Symbol}
Stacktrace:
[1] setnames!(n::NamedMatrix{Float64, Matrix{…}, Tuple{…}}, v::Vector{Symbol}, d::Int64)
@ NamedArrays C:\Users\aa\.julia\packages\NamedArrays\e4HMa\src\names.jl:99
[2] top-level scope
@ c:\research\ABM_julia\0_10_0.jl:191
Some type information was truncated. Use `show(err)` to see complete types.
Any plans to update the problem?
The text was updated successfully, but these errors were encountered:
setname!
function doesn't allow the name with Symbol formatFor example,
works well with following result:
However, for the index name with Symbol format like below:
returns following error:
Any plans to update the problem?
The text was updated successfully, but these errors were encountered: