title: chi square test in R when your data is a list of observations
body: <p>Is it possible to calculate chi squared in <strong>R</strong> when your data is in the form of a list of observations? What I mean is, it is simple to get chi squared if you know the cross. For instance, if you have a survey and you ask for gender and a true-false question, you only need four numbers to calculate the chi squared. What I have instead is two columns of data with each respondent's answers. Is it possible to get chi squared from this structure of the data, or do I have to convert it?</p>
  
  <p>If I have to convert it for <strong>R</strong>, does anyone know of another language that will allow me to get the chi squared directly?</p>