We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
julia> mat = NamedArray(rand(1:10,2,3)) 2×3 Named Array{Int64,2} A ╲ B │ 1 2 3 ──────┼─────────── 1 │ 10 5 4 2 │ 1 10 2 julia> view(mat, 2, :) 3-element SubArray{Int64,1,NamedArrays.NamedArray{Int64,2,Array{Int64,2},Tuple{DataStructures.OrderedDict{String,Int64},DataStructures.OrderedDict{String,Int64}}},Tuple{Int64,Colon},false}: 1 10 2 julia> view(mat, "2", :) ERROR: MethodError: no method matching view(::NamedArrays.NamedArray{Int64,2,Array{Int64,2},Tuple{DataStructures.OrderedDict{String,Int64},DataStructures.OrderedDict{String,Int64}}}, ::String, ::Colon) Closest candidates are: view{T,N}(::AbstractArray{T,N}, ::Union{AbstractArray{T,N},Colon,Real}...) at subarray.jl:63 view{N}(::AbstractArray{T,N}, ::Union{AbstractArray{T,N},Colon,Real}...) at subarray.jl:73 view(::AbstractArray{T,N}, ::Union{AbstractArray{T,N},Colon,Real}) at subarray.jl:68
The text was updated successfully, but these errors were encountered:
view on a NamedArray should probably call view on the wrapped array, and wrap it inside a new NamedArray with the relevant subset of names.
view
NamedArray
Sorry, something went wrong.
b6a3b1d
No branches or pull requests
The text was updated successfully, but these errors were encountered: