Description Usage Arguments Value Examples
A varlist in genvar
is a space-separated string potentially with wildcard characters, "var1 var2 var3 x*". This function converts a varlist to a formula or to a vector.
1 | structure_varlist(x, type = "formula")
|
x |
the varlist to be converted in "var1 var2 var3" format. Can be specified using the globbing characters "*" (match zero or more of any character) or "?" (match any single character) like "var*" or "var?" for "var1 var2 var3" or using regular expressions if |
type |
if "formula", return a varlist in formula format; if "vector", return a varlist in character vector format. |
a formula object which can be passed to model.frame
or a character vector giving the name of each variable
1 2 3 4 | use(cars, clear=TRUE)
structure_varlist("speed dist", type="formula")
structure_varlist("speed dist", type="vector")
structure_varlist("*", type="vector")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.