Learn R Programming

DescriptiveRepresentationCalculator (version 1.1.1)

validatePopShares: Validate population shares

Description

Checks that population shares are valid: non-negative and sum to 1.

Usage

validatePopShares(PopShares, tol = 1e-06)

Value

TRUE if valid, otherwise throws an error.

Arguments

PopShares

A numeric vector of population shares.

tol

Tolerance for checking if shares sum to 1.