Learn R Programming

extras (version 0.7.3)

pzeros: Proportion of Zeros

Description

The proportion of zeros in an numeric object.

Usage

pzeros(x, na_rm = FALSE)

Value

A number between 0 and 1.

Arguments

x

A numeric object of MCMC values.

na_rm

A flag specifying whether to remove missing values.

See Also

Other summary: kurtosis(), lower(), pvalue(), skewness(), svalue(), upper(), variance(), xtr_mean(), xtr_median(), xtr_sd(), zeros(), zscore()

Examples

Run this code
pzeros(c(0:2))

Run the code above in your browser using DataLab