Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 1.09 KB

README.md

File metadata and controls

30 lines (22 loc) · 1.09 KB

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"