countgtOne: countgtOne used in apply to count the number > 1 in a vector

View source: R/rutils.R

countgtOneR Documentation

countgtOne used in apply to count the number > 1 in a vector

Description

countgtOne used in apply to count the number > 1 in a vector

Usage

countgtOne(invect)

Arguments

invect

vector of values

Value

A single value of zero or the number of NAs

Examples

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

## End(Not run)

haddonm/codeutils documentation built on April 15, 2024, 1:02 p.m.