
Hi,
 
I have a table in R with data I needed and need to create a contingency table out of it. The table I have so far looks like this:
 
 
                   Binger
r
DietType     No Yes
  Dangerous  15  12
  Healthy    52   9
  None      134  24
  Unhealthy  72  23
 
These are the error messages that I keep getting whenever I try to get a contingency table. I'm not sure why it won't work for me, any help would be appreciated!
> nametable<-table(excat,recat)
Error in table(excat, recat) : object 'excat' not found
 		 	   		  
	[[alternative HTML version deleted]]

