MetadataArrays.jl

Author JuliaArrays
Popularity
10 Stars
Updated Last
10 Months Ago
Started In
May 2018

MetadataArrays

Build Status codecov.io

Implementation of arrays with metadata.

Metadata Arrays

MetadataArray binds an array to named metadata.

julia> v = ["John", "John", "Jane", "Louise"];

julia> mdv = MetadataArray(v, groups = Dict("John" => "Treatment", "Louise" => "Placebo", "Jane" => "Placebo"))
4-element MetadataVector{String, Vector{String}, NamedTuple{(:groups,), Tuple{Dict{String, String}}}}:
 "John"
 "John"
 "Jane"
 "Louise"

julia> metadata(mdv, :groups)
Dict{String, String} with 3 entries:
  "John"   => "Treatment"
  "Jane"   => "Placebo"
  "Louise" => "Placebo"

Required Packages

No packages found.