?table On Wednesday 25 April 2007 14:32, Natalie O'Toole wrote: > 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 > > ______________________________________________ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html and provide commented, minimal, > self-contained, reproducible code.
-- Dylan Beaudette Soil Resource Laboratory http://casoilresource.lawr.ucdavis.edu/ University of California at Davis 530.754.7341 ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.