N: Calculates the number of non-missing values

Description Usage Arguments Details Value Examples

View source: R/N.R

Description

Calculates the number of non-missing values in the elements of vector x.

Usage

1
N(x)

Arguments

x

A vector of numeric or character values that may include NAs.

Details

Used by calcSMR.

Value

An integer representing the number of non-missing values in x.

Examples

1
2
a = c(1:5, NA, 7:10)
N(a)

denis-chabot/fishMO2 documentation built on July 16, 2020, 1:53 a.m.