Re: [R] Zero counts lost with table() in functions

2010-06-14 Thread Erik Iverson
Ottar Kvindesland wrote: Hi, I am collecting replies from a survey and counts replies by the table() function. The function below carries two data frames and counts the observations of the findings in the first parameter vector given the value of the second as shown in the code below. My trou

Re: [R] Zero counts lost with table() in functions

2010-06-14 Thread Peter Dalgaard
Ottar Kvindesland wrote: > Hi, > > I am collecting replies from a survey and counts replies by the table() > function. The function below carries two > data frames and counts the observations of the findings in the first > parameter vector given the value of the second as shown in the code below.

[R] Zero counts lost with table() in functions

2010-06-14 Thread Ottar Kvindesland
Hi, I am collecting replies from a survey and counts replies by the table() function. The function below carries two data frames and counts the observations of the findings in the first parameter vector given the value of the second as shown in the code below. My trouble is that the vector kp_vec