colnames.pretty: Pretty Column Names this prints a vertical list of column...

View source: R/df_utils.R

colnames.prettyR Documentation

Pretty Column Names this prints a vertical list of column names that are quoted and separated by commas useful for getting a usable list for copying and pasting

Description

Pretty Column Names this prints a vertical list of column names that are quoted and separated by commas useful for getting a usable list for copying and pasting

Usage

colnames.pretty(
  df,
  sort = TRUE,
  quotes = TRUE,
  vert = FALSE,
  sep = ",",
  colwid = NULL
)

Arguments

df

- a data.frame

sort

- logical - sort names?

quotes

- logical - names are quoted?

vert

- logical - separate names by a newline?

sep

- character - character to separate names by, default = ","

colwid

- integer - width of the string holding each column name (uses padding)

Value

- nothing

Examples

colnames.pretty(mtcars)
colnames.pretty(mtcars,vert=TRUE)


JahNorr/orrr documentation built on Jan. 29, 2025, 5:11 p.m.