combine_jsons | R Documentation |
Combine JSON files
combine_jsons(json_filenames, out_filename, outpath = getwd())
json_filenames |
Vector of the json files to be combined. Preferably without file extensions. Preferably containing the full path. |
out_filename |
Filename of the output json file. Preferably without file extensions. |
outpath |
Path to the output files. Defaults to the working directory. |
inpath |
Path to the input files. Defaults to the working directory. |
Creates a combined .json file.
k <- list(abc = 1, def = 2)
j <- list(abcd = 3, defg = 4)
jsonlite::write_json(k, 'json1.json')
jsonlite::write_json(j, 'json2.json')
combine_jsons(c('json1', 'json2'), 'combined')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.