reduce_cols: reduce multiple columns into single column.

View source: R/dplyr.R

reduce_colsR Documentation

reduce multiple columns into single column.

Description

reduce multiple columns into single column by funton .reduce.

Usage

reduce_cols(
  data,
  col,
  ...,
  .keep = FALSE,
  .before = NULL,
  .after = NULL,
  .reduce = function(x, y) {
     return(x)
 }
)

Arguments

data

table

col

column

...

merged columns

.keep

whether the merged column are kept or removed.

.before

location of column before brabra.

.after

location of column after brabra.

.reduce

reduce function; default is the first column which is not NA

Value

data with the reseved columns


hmito/hmRLib documentation built on March 13, 2024, 9:41 p.m.