Re: [R] Automatically Adding Categories

2009-06-22 Thread David Winsemius
On Jun 22, 2009, at 7:56 PM, Jeffrey Edgington wrote: Greetings, I have two files which contain responses to a series of multiple choice questions. One file contains responses before an "intervention" and the other contains the responses afterward. There were three possible responses to

Re: [R] Automatically Adding Categories

2009-06-22 Thread Henrique Dallazuanna
Try this: table(factor(pre, levels = c("D", "F", "T")), factor(post, levels = c("D", "F", "T"))) On Mon, Jun 22, 2009 at 8:56 PM, Jeffrey Edgington wrote: > Greetings, > > I have two files which contain responses to a series of multiple choice > questions. One > file contains responses