countgtzero: countgtzero used in apply to count the number >0 in a vector

View source: R/rutils.R

countgtzeroR Documentation

countgtzero used in apply to count the number >0 in a vector

Description

countgtzero used in apply to count number >0 in a vector

Usage

countgtzero(invect)

Arguments

invect

vector of values

Value

A single value of number of values > 0

Examples

## Not run: 
  set.seed(12346)
  x <- trunc(runif(10)*10)
  x
  countgtzero(x)  # should be 9

## End(Not run)

haddonm/codeutils documentation built on March 10, 2024, 12:14 p.m.