Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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,
  col_x = paste0(col, ".x"),
  col_y = paste0(col, ".y")
)

Arguments

flattened_pd

A flattened parse table.

col

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

col_x, col_y

The name of the column from the left (right) parent to consolidate.


styler

Non-Invasive Pretty Printing of R Code

v1.4.1
MIT + file LICENSE
Authors
Kirill Müller [aut], Lorenz Walthert [cre, aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.