swapColumns: Swap columns between two dataframes

View source: R/utilities.R

swapColumnsR Documentation

Swap columns between two dataframes

Description

Replaces columns in the dataframe to with those with identical names in the dataframe from.

Usage

swapColumns(to, from)

Arguments

to

Dataframe to pull columns into

from

Dataframe to pull columns from

Value

A dataframe with the swapped columns


pepfar-datim/datapackr documentation built on April 14, 2024, 10:35 p.m.