[julia-users] Re: Graph package

2015-04-03 Thread pgs
Thanks On Thursday, April 2, 2015 at 10:48:53 AM UTC+1, pip7...@gmail.com wrote: > > Hi > How can I save the following example plot(g) to .gif / .png or .jpg file > > julia> using Graphs > > julia> g = simple_graph(3) > Directed Graph (3 vertices, 0 edges) > > julia> add_edge!(g, 1, 2) > edge [1

[julia-users] Re: fill array

2015-03-18 Thread pgs
Hi I guess what I'm trying to say is that if array "a" started life as [11,12,13,14] - then if we use "filter(x->x<3, z)" which returns 1,2 - I would like 1,2 added to array a resulting in "a array" being . [11,12,13,14,1,2] or [1,2,11,12,13,14] Regards On Wednesday, March 18, 2015 at 3:05

[julia-users] Re: join dataframe columns

2015-03-02 Thread pgs
Johan Thanks for this. I also found that I could use .* to join two columns in a DataFrame. Using a dot star to join! - I found surprising - but it worked. Regards On Sunday, March 1, 2015 at 2:50:42 PM UTC, Johan Sigfrids wrote: > > With a DataFrame like: > > df = DataFrame(Name = ["Test", "Tes

[julia-users] Re: Using a function on a group of data

2015-02-25 Thread pgs
Hi Thanks for the links. Regards On Tuesday, February 24, 2015 at 11:47:34 AM UTC, pgs wrote: > > Hi > I have a txt file which I'm trying to perform a compuation(FUNCTION) on > groups of data - the Grouping being Col1 then Col2. > eg > > Say my txt file has the f

[julia-users] Using a function on a group of data

2015-02-24 Thread pgs
Hi I have a txt file which I'm trying to perform a compuation(FUNCTION) on groups of data - the Grouping being Col1 then Col2. eg Say my txt file has the following Col1,Col2,Col3 Col4 A 15:00 4 8 A 15:00 6 5 A 15:30 2 4 A

[julia-users] Re: Grouping - Dataframes

2015-02-22 Thread pgs
Hi This now works - by *(df,:Col1,x->sum(x[:Col2])) - it was my fault as I left out a " in one of the headers in my txt file.* *Thanks* On Sunday, February 22, 2015 at 8:06:59 PM UTC, pgs wrote: > Hi > Is it possible to summarize data in a data frame eg > > Col1 Col2 &

[julia-users] Re: Grouping - Dataframes

2015-02-22 Thread pgs
Added the by and now getting ... 'by' has no method matching by(::Array(Any,2), ::Symbol, ::Function in include at boot.jl:245 On Sunday, February 22, 2015 at 8:06:59 PM UTC, Philip Sivyer wrote: > Hi > Is it possible to summarize data in a data frame eg > > Col1 Col2 > A 2 > A