Re: [R] Mean: category wise within a data frame

2013-12-24 Thread arun
HI, May be this helps: Please use ?dput() to show the example dataset dat1 <- read.table(text="Categories  Variable Frequencies 1 0.009 1003 1 0.867 1200 1 0.567 987 1 0.765 134 1 0.445 890 2 0.007 899   2 0.768 707    2 0.789 865 2 0.544  678    2  0.987 889",sep="",

Re: [R] Mean: category wise within a data frame

2013-12-24 Thread David Carlson
() function: ?aggregate David Carlson -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Nandini Jayakumar Sent: Tuesday, December 24, 2013 4:36 AM To: r-help@r-project.org Subject: [R] Mean: category wise within a data frame Hello all I

[R] Mean: category wise within a data frame

2013-12-24 Thread Nandini Jayakumar
Hello all I have a table a sample of which is as follows: Categories Variable (x)