colnames.pretty | R 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
colnames.pretty(
df,
sort = TRUE,
quotes = TRUE,
vert = FALSE,
sep = ",",
colwid = NULL
)
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) |
- nothing
colnames.pretty(mtcars)
colnames.pretty(mtcars,vert=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.