[R] Query about using table
lalitha viswanath
lalithaviswanath at yahoo.com
Thu Oct 26 20:44:16 CEST 2006
Hi
I have data of the following form
ID age member_FLAG
1 25 Y
2 36.75 N
3 75.5 N
.........
.........
I want to get a histogram of this data showing
distribution of member_flag in each age-bin i.e. how
many values in each age bin have a member_flag of 'Y'
and how many have 'N'.
I was able to do the same using barplot2.
However I also need similar information in a tabular
form using percentages.
i.e in each age bin, what is the PERCENTAGE of IDs
with a member_flag of 'Y'
I am trying to work with table for the same, but would
appreciate some guidance regarding the above.
Thanks
Lalitha
More information about the R-help
mailing list