Learn R Programming

radiant.data (version 1.4.5)

varprop: Variance for proportion

Description

Variance for proportion

Usage

varprop(x, na.rm = TRUE)

Value

Variance for proportion

Arguments

x

Input variable

na.rm

If TRUE missing values are removed before calculation

Examples

Run this code
varprop(c(rep(1L, 10), rep(0L, 10)))

Run the code above in your browser using DataLab