readConceptSet: Read a concept set json or csv into R

readConceptSetR Documentation

Read a concept set json or csv into R

Description

Concept sets can be serialized to json or csv file formats. 'readConceptSet' reads the files into R as Capr concepts sets.

Usage

readConceptSet(path, name, id = NULL)

Arguments

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?)

Examples

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)


OHDSI/Capr documentation built on Feb. 20, 2025, 4 a.m.