expand_param: Expand Parameter to Length (Strict)

View source: R/utils-validation.R

expand_paramR Documentation

Expand Parameter to Length (Strict)

Description

Expands a parameter to length n. Only accepts length 1 or length n. Throws error for any other length (no silent recycling).

Usage

expand_param(x, n, name = "parameter")

Arguments

x

Value to expand.

n

Target length.

name

Parameter name for error message.

Value

Vector of length n.


cograph documentation built on April 1, 2026, 1:07 a.m.