wrap.merge: Merge columns

View source: R/wrap.merge.R

wrap.mergeR Documentation

Merge columns

Description

Searches the data frame for columns with identical names and then merges them into one column, preserving only the single entry within each row that is not blank or NA. If any row contains entries in two or more identically named columns, the function returns an error and does not overwrite data. After merging columns, the function assigns the revised data frame directly to the Global Environment.

Usage

wrap.merge(df)

Arguments

df

The data frame that the function should search for identical column names

Examples

wrap.merge(df = bdata)


michaelkardas/bwrappers documentation built on Nov. 13, 2022, 1:14 a.m.