View source: R/serialization.R
loadVectorJson | R Documentation |
Load a vector from json
loadVectorJson(json_object, json_vector_label, subfolder_name = NULL)
json_object |
Object of class |
json_vector_label |
Label referring to a particular vector (i.e. "sigma2_samples") in the overall json hierarchy |
subfolder_name |
(Optional) Name of the subfolder / hierarchy under which vector sits |
R vector
example_vec <- runif(10)
example_json <- createCppJson()
example_json$add_vector("myvec", example_vec)
roundtrip_vec <- loadVectorJson(example_json, "myvec")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.