Re: [julia-users] Naive question about data frames -- What are they used for?

2014-10-25 Thread Daniel Carrera
Thanks. That's a pretty clear example. "Compute the average grade for each socioeconomic group" is obviously useful and it is not expressed naturally with regular arrays. Cheers, Daniel. On 25 October 2014 18:51, Cedric St-Jean wrote: > Yeah, whenever you have a matrix of data and each column r

Re: [julia-users] Naive question about data frames -- What are they used for?

2014-10-25 Thread Cedric St-Jean
Yeah, whenever you have a matrix of data and each column represents something different, then using a DataFrame is very convenient (and that's really all there is to it - convenience). For instance, given student exam data I might express "Compute the average grade for each socioeconomic group"

Re: [julia-users] Naive question about data frames -- What are they used for?

2014-10-25 Thread John Myles White
Consider doing research in any domain (e.g. epidemiology, economics, psychology, sociology, consumer research,...) where you measure N variables (each having a different type) about a single unit of observation. Then the DataFrame is the most natural representation of that domain’s data. — Joh

Re: [julia-users] Naive question about data frames -- What are they used for?

2014-10-25 Thread Daniel Carrera
Thanks. On 25 October 2014 17:32, Tamas Papp wrote: > You may find the "Tidy Data" paper by H. Wickham is a good introduction: > http://vita.had.co.nz/papers/tidy-data.pdf > > It uses R's syntax, but I think R influenced the design of the Julia > libray a lot. > > Best, > > Tamas > > On Sat, Oct

Re: [julia-users] Naive question about data frames -- What are they used for?

2014-10-25 Thread Daniel Carrera
There was a time when my job was to write database-driven web applications. I worked with MySQL a lot. I understand that a data frame has the same type of content as a database, but they do not seem to be used to solve the same types of problems as something like MySQL. I thought data frames were u

Re: [julia-users] Naive question about data frames -- What are they used for?

2014-10-25 Thread Tamas Papp
You may find the "Tidy Data" paper by H. Wickham is a good introduction: http://vita.had.co.nz/papers/tidy-data.pdf It uses R's syntax, but I think R influenced the design of the Julia libray a lot. Best, Tamas On Sat, Oct 25 2014, Daniel Carrera wrote: > Hello, > > This is a fairly naive que

Re: [julia-users] Naive question about data frames -- What are they used for?

2014-10-25 Thread John Myles White
Have you ever used a database? A DataFrame is just a database that’s stored in memory. — John On Oct 25, 2014, at 5:37 AM, Daniel Carrera wrote: > Hello, > > This is a fairly naive question. I have observed for the last two years that > many people really like data frames. R users obviously

[julia-users] Naive question about data frames -- What are they used for?

2014-10-25 Thread Daniel Carrera
Hello, This is a fairly naive question. I have observed for the last two years that many people really like data frames. R users obviously like them, and the Python and Julia communities thought it was worth adding that feature to their languages too. However, as an astronomer, I have not yet h