Re: [R] Help with data frame conversion to contingency table

2013-08-28 Thread Rui Barradas
Hello, If you want to perform a chi suqare test, you don't need to make a contingency table. From the help page for ?chisq.test, section Details: "If x is a matrix with at least two rows and columns, it is taken as a two-dimensional contingency table" So all you need is to pass a two column

[R] Help with data frame conversion to contingency table

2013-08-28 Thread SHASHWAT MISHRA
Hi, I am a beginner at R and do not have a strong background in statistics. I hope somebody can help me with this. I have a data frame which looks like this Facial.Type North.Indians South.Indians 1 Leptoprosopic96 115 2 Hyperleptoprosopic 189