chk_valid_quantile: Check that a vector is a valid quantile

Description Usage Arguments Examples

View source: R/chk-composite.R

Description

chk_valid_quantile checks that the elements of x conform to R conventions about formatting quantiles. chk_quantile_increasing assumes that x is correctly formatted, and checks that the elements are strictly increasing.

Usage

1
2
3
4
5
6
7

Arguments

x

A character vector.

name

The name for x that will be used in error messages.

Examples

1
2
3
x <- c("2.5%", "50%", "97.5")
chk_valid_quantile(x, name = "x")
chk_quantile_increasing(x, name = "x")

johnrbryant/demcheck documentation built on Dec. 31, 2021, 11:57 a.m.