Description Usage Arguments Details Author(s) See Also Examples
This function is a shortcut to use dput select.list for variable names from a data frame.
1 |
df |
The data frame that the list should come from |
ind |
The index of names that should be used: 1/'row" for rownames, 2/'col' for column names |
multiple |
Passed to select.list: should multiple entries be used? Defaults to TRUE. |
graphics |
Passed to select.list: should graphics be used? Defaults to TRUE. |
quotes |
Do you want quotes around each element? Defaults to TRUE. |
... |
Passed to select.list |
The function simply rewrites some defaults for select.list and wraps it in a dput. It has an option to select columns or rows, simply by changing the input from "columnames" to "rownames" via an if statement. Nothing fancy, but certainly much shorter than what I normally use.
Michael Floren
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.