counta {mixIndependR} | R Documentation |
Simple count including zero###
counta(z, y)
z |
a vector you would like to check |
y |
an element you would like to count.(Even it is not included in z) |
This function counts how many the assigned elements there are in one vector.
the times that y appears in z
z <-rbinom(20,1,0.5)
counta(z,0)