Learn R Programming

styler (version 1.3.1)

stylerignore_consolidate_col: Consolidate columns after a merge

Description

After base::merge(), all non-id columns that were present in x and y do get a suffix .x and .y. If the y value is missing, use the x value (because the information for this token was not stylerignored), otherwise the y value (i.e. the styled value).

Usage

stylerignore_consolidate_col(flattened_pd, col)

Arguments

flattened_pd

A flattened parse table.

col

A string indicating the name of the column that should be consolidated.