I think you are looking for a dictionary?

http://docs.julialang.org/en/latest/stdlib/base/?highlight=dict#associative-collections

kl. 16:40:58 UTC+2 mandag 29. september 2014 skrev Mauro følgende:
>
> I haven't used it but I think DataFrames can do this 
> http://juliastats.github.io/ 
>
> On Mon, 2014-09-29 at 08:08, [email protected] <javascript:> wrote: 
> > Dear all, 
> > 
> > I'm an absolute beginner in julia, I tried to read the relevant part of 
> the 
> > documentation but I'm still not quite sure how to solve my problem. 
> > I need to use structures -- a vector would do -- to which I can assign 
> > labels, an example being worth a thousand words, something like: 
> > 
> > M = ["p1",  "p2", "p3"; 1, 2, 3] 
> > 
> > I need to be able to call M[2,"p1"] to access the value of "p1", that is 
> 1 
> > in the present case. 
> > 
> > There does not seem to be a way to build composite arrays in julia, 
> hence 
> > my question. 
> > 
> > Any type of structures would do, but my aim is -- obviously -- to use 
> the 
> > one that is most efficient. 
> > 
> > Thanks a lot, 
> > 
> > AS 
>
> -- 
>

Reply via email to