Re: [R] working with unequal rows

2016-04-10 Thread Michael Dewey
Dear Saba I think the aggregate function is what you need ?aggregate should help you on the next step On 10/04/2016 12:26, Saba Sehrish via R-help wrote: Hi I have a data frame with rows specifying companies (codes are assigned to companies) and columns specify months (monthly data). The dat

[R] working with unequal rows

2016-04-10 Thread Saba Sehrish via R-help
Hi I have a data frame with rows specifying companies (codes are assigned to companies) and columns specify months (monthly data). The data is based on male (M) and female (F) information for each month. Following is an example of how my data looks like: 01 02 03 04 001 M M