ensure_length: Helper function to ensure vectors have a specified length

View source: R/mfp_step.R

ensure_lengthR Documentation

Helper function to ensure vectors have a specified length

Description

Used to make sure dimensions of matrix rows match.

Usage

ensure_length(x, size, fill = NA)

Arguments

x

input vector or matrix.

size

length or size of x which is desired.

fill

value to fill in if x is not of desired length or size.


mfp2 documentation built on Nov. 15, 2023, 1:06 a.m.