readConceptSet | R Documentation |
Concept sets can be serialized to json or csv file formats. 'readConceptSet' reads the files into R as Capr concepts sets.
readConceptSet(path, name, id = NULL)
path |
Name of concept set file to read in csv or json format. (e.g. "concepts.json") |
name |
the name of the concept set |
id |
the id for the concept set (keep?) |
library(Capr)
path <- tempfile("concepts", fileext = ".json")
concepts <- cs(1, 2, descendants(4, 5), exclude(descendants(6, 7)), name = "test")
writeConceptSet(concepts, path = path)
concepts <- readConceptSet(path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.