View source: R/code_modify_func.R
code_modify_func | R Documentation |
Code modify function. To be called by the harmonization function.
code_modify_func(
data = temp_dataset,
instruction = code_instruct,
old_var = source_item_long
)
data |
Dataframe to be modified |
instruction |
Coding instruction from harmonization sheet |
old_var |
Name of original variable |
Vector of length equal to old_var
# Allows the user to define a function with `instruction`
# The `old_var` in `data` will be used in place of `x` in `instruction`.
code_modify_func(data = cohort_a, instruction = 'x + 5', old_var = 'age')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.