Description Usage Arguments Examples
Takes two variables with different missings and gives one variable with values of the second variable substituted where the first had missings.
1 2 | aggregate2sources(df, new_var, var1 = NULL, var2 = NULL,
remove_old_variables = TRUE)
|
df |
data.frame or variable |
new_var |
new variable name |
var1 |
first source. Assumed to be new_var.x (default suffixes after merging) |
var2 |
second source. Assumed to be new_var.y (default suffixes after merging) |
remove_old_variables |
Defaults to not keeping var1 and var2 in the resulting df. |
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.