align_vectors: Align two vectors

View source: R/align_stuff.R

align_vectorsR Documentation

Align two vectors

Description

Align two vectors using their names attributes, either expanding with NAs or reducing to the common values.

Usage

align_vectors(x, y, expand = TRUE)

Arguments

x

A vector

y

Another vector

expand

If TRUE, expand each to the same length using NAs. If FALSE, remove elements not in common.

Value

A list with two components, x and y


broman documentation built on July 8, 2022, 5:07 p.m.

Related to align_vectors in broman...