Description Usage Arguments Author(s) Examples
View source: R/change_target_function.R
Changes the left-hand side of a formula
1 | change_target(object, newtarget, oldtarget = NULL)
|
object |
object containing formula of interest |
newtarget |
character for new left-hand side |
oldtarget |
character to restrict to specific existing target. If NULL, any target will be changed. |
Kim Rand-Hendriksen
1 2 3 | formula1 <- oldtarget ~ x + y
change_target(formula1, "newtarget")
change_target(formula1, "newtarget", "not_this_target")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.