validar_proporcao: Validate a proportion (must be between 0 and 1, inclusive)

View source: R/utils.R

validar_proporcaoR Documentation

Validate a proportion (must be between 0 and 1, inclusive)

Description

Validate a proportion (must be between 0 and 1, inclusive)

Usage

validar_proporcao(p, nome = "p")

Arguments

p

Value to validate.

nome

Character. Name of the argument, used in error messages.

Value

p, invisibly, if valid; otherwise raises an error.


sampleone documentation built on Oct. 13, 2026, 5:07 p.m.