loadVectorJson {stochtree} | R Documentation |
Load a vector from json
Description
Load a vector from json
Usage
loadVectorJson(json_object, json_vector_label, subfolder_name = NULL)
Arguments
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 |
Value
R vector
Examples
example_vec <- runif(10)
example_json <- createCppJson()
example_json$add_vector("myvec", example_vec)
roundtrip_vec <- loadVectorJson(example_json, "myvec")
[Package stochtree version 0.1.1 Index]