I need some help, I have a table in R with so may columns, lets say that I am interested in the columns V111
to V135
and I would like to count the rows in each column that are different to './.'.
I can do this for each column independently (it says to me the number of coincidences different to ./.)
m <-p[p$V111 != './.', ]
but I appreciate I someone could suggest me a loop to get the number of coincidences for each column.
V110 V111 V112
./. 1/1:0,51:51:99:2136,153,0 1/1:0,28:28:84:1211,84,0
./. ./. 0/1:15,13:28:99:434,0,543
./. ./. ./.
./. ./. ./.
./. ./. ./.
1/1:0,21:21:63:875,63,0 ./. ./.
./. ./. ./.
./. ./. ./.
./. ./. ./.
./. ./. ./.
./. ./. ./.
./. 1/1:0,18:18:54:745,54,0 1/1:0,5:5:15:207,15,0
./. 1/1:0,2:2:6:90,6,0 ./.
./. 1/1:0,2:2:6:90,6,0 ./.
./. ./. ./.
./. ./. ./.
./. ./. ./.
./. 0/1:6,4:10:99:137,0,210 ./.