The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
library(doBy)
library(rlang)
data(CO2)
The v*
functions in the doBy
package allow for flexible and consistent handling of variable input.
These tools support unquoted names, character vectors, and formulas.
The main functions are:
vparse()
– extract variable names from flexible inputv()
– shorthand for vparse()
vselect()
– select columns from a data frame using flexible inputvcheck()
– verify that variables exist in a data framevmap()
– apply a function to each parsed variable namevrename()
– rename variables in a data framevparse()
vparse(Treatment, Type)
vparse(c("Treatment", "Type"))
vparse(~Treatment + Type)
v()
– shorthand for vparse()
v(Treatment, Type)
v(~Treatment + Type)
v(c("Treatment", "Type"))
vselect()
vselect(CO2, Treatment, Type)
vselect(CO2, ~Treatment + Type)
vcheck()
vcheck(CO2, Treatment)
vcheck(CO2, ~Treatment + Type)
vmap()
vmap(~Treatment + Type, toupper)
vrename()
vrename(CO2, c(Treatment = "Trt", Type = "Group"))
The v*
tools simplify working with variable names and selection in data frames,
making it easier to write functions that accept flexible input formats.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.