This is a wrapper for merge_aux_info_from_df() in that it fails gracefully if there is an error at any stage. Also it prints some output as it goes along.
1 2 3 4 5 6 7 8 9 | merge_aux_info_from_file(
master_df,
aux_file_path,
aux_info_colname,
by.master,
by.aux,
verbose_read = TRUE,
verbose_merge = FALSE
)
|
master_df |
Dataframe containing master merge information (e.g. names of individuals) |
aux_file_path |
File from which to read auxiliary information |
aux_info_colname |
Column name in which to store auxiliary information as JSON objects |
verbose_read |
boolean flag to print output on reading file |
verbose_merge |
boolean flag to print output while merging |
by.x |
Merge key on master dataframe |
by.y |
Merge key on auxiliary dataframe |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.