counta: Simple count including zero###

Description Usage Arguments Details Value Examples

View source: R/counta.R

Description

Simple count including zero###

Usage

1
counta(z, y)

Arguments

z

a vector you would like to check

y

an element you would like to count.(Even it is not included in z)

Details

This function counts how many the assigned elements there are in one vector.

Value

the times that y appears in z

Examples

1
2
z <-rbinom(20,1,0.5)
counta(z,0)

mixIndependR documentation built on March 17, 2021, 5:09 p.m.