Learn R Programming

cograph (version 1.5.2)

expand_param: 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")

Value

Vector of length n.

Arguments

x

Value to expand.

n

Target length.

name

Parameter name for error message.