countgtzero: countgtzero used in apply to count the number of zeros in a...

View source: R/datalow_utils.r

countgtzeroR Documentation

countgtzero used in apply to count the number of zeros in a vector

Description

countgtzero is designed to be used within the apply function to count the number of zeros in a vector

Usage

countgtzero(invect)

Arguments

invect

vector of values

Value

A single value of zero or the number of zeros

Examples

## Not run: 
x <- c(1,2,3,4,0,0,0,5,6,7,8) # 8 values > 0 
countgtzero(x)

## End(Not run)

haddonm/datalowSA documentation built on Nov. 5, 2023, 6:40 p.m.