[R] Count

venkadesan venky venkynov10 at gmail.com
Wed May 13 11:58:20 CEST 2015


Hello Team,

I have data like this

have Small doubts on the following calculation


For example,

Employee size    Camp 1    camp 2     Camp 3

1                            1               0               0

2                            0               0               1

3                            1                1              0

1                            0                0              1

2                             1                0             0

for employee size columns values are repeated and its not uniqe id so i
want to find that how many zero's are there in 1st  id and 2nd id?

for example for employee size(1st row) 1=0+0

                                                 (4th row) 1=0+0

here totally 4 zero,s i want results like this

	[[alternative HTML version deleted]]



More information about the R-help mailing list