[R] about tables

From: secretario academico FACEA <faceasec_at_uapar.edu>
Date: Wed 08 Jun 2005 - 03:33:33 EST


Hi dear all
I'm doing some contingency tables and I'd like to know if it is posible to make only one table in R that shows me the responses of people who visit a place with some frecuency about one question with two posibilities (they are treated like two variables with options). I'm thinking of a table similar to the next below:

Frecuencia (Frec)         

Alternative 1         

Alternative 2

Good         

Bad         

Good         

Bad

Todos los días
Entre 4 y 5 veces por semana
2 veces por semana
Entre 1 y 3 veces al mes
Primera vez
Sin respuesta                                            

Another thing I'd like to do is to make a contingency table that relates a categorical data with a numerical data. They are the frecuency of visit to a place with the ages of those people, but I need to summarize the age into intervals that outcomes from a Histogram. For instance, "hist" function with $breaks and $counts retunrs the intervals limits and frecuency of data into each interval.

Frecuencia (Frec)         

Edad(Age)

15-20         

20-25         

25-30         

30-35

Todos los días
Entre 4 y 5 veces por semana
2 veces por semana
Entre 1 y 3 veces al mes
Primera vez
Sin respuesta                                    

Thanks a lot for your help

Adrián C.



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 Received on Wed Jun 08 03:42:39 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:27 EST