[R] aggregate similar to SPSS
Natalie O'Toole
notoole at mtroyal.ca
Wed Apr 25 23:32:11 CEST 2007
Hi,
Does anyone know if: with R can you take a set of numbers and aggregate
them like you can in SPSS? For example, could you calculate the percentage
of people who smoke based on a dataset like the following:
smoke = 1
non-smoke = 2
variable
1
1
1
2
2
1
1
1
2
2
2
2
2
2
When aggregated, SPSS can tell you what percentage of persons are smokers
based on the frequency of 1's and 2's. Can R statistical package do a
similar thing?
Thanks,
Nat
More information about the R-help
mailing list