[R] help in ddply

arunkumar1111 akpbond007 at gmail.com
Tue Apr 3 10:02:49 CEST 2012


Hi

I've records like this
df=
x	panel
4	1
93	2
21	3
83	4
75	1
87	2
87	3
78	4
50	1
76	2
86	3
65	4
84	1
40	2
39	3
26	4


i want to create histogram out of it . i want all the mid and count values
for panel wise

my code is 
histoutput = ddply(df,.(df[2]),hist)

i'm not able to get the required result.

please help me
using for loop takes a lot of time if there are more records

-----
Thanks in Advance
        Arun
--
View this message in context: http://r.789695.n4.nabble.com/help-in-ddply-tp4528064p4528064.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list