xcol: The verb xcol renames columns in a table.

Usage Arguments Author(s) Examples

View source: R/xcol.R

Usage

1
xcol(d, cols)

Arguments

d

A dataframe

cols

A character vector of new column names, of length less than or equal to the number of columns in the table

Author(s)

JFP

Examples

1
2
3
4
5
  d <- data.frame(n=c("x", "y", "x", "z", "z", "y"),
                  p=c(0,15,12,20,25,14),
                  stringsAsFactors=FALSE
  )
  d %>% xcol("m")

HikaGenji/fql documentation built on April 12, 2021, 8:36 a.m.