cs: Create a concept set

View source: R/conceptSet.R

csR Documentation

Create a concept set

Description

cs is used to create concept set expressions.

'exclude' is meant to be used inside 'cs' when creating a new concept set.

'mapped' is meant to be used inside 'cs' when creating a new concept set.

'descendants' is meant to be used inside 'cs' when creating a new concept set.

Usage

cs(..., name, id = NULL)

exclude(...)

mapped(...)

descendants(...)

Arguments

...

One or more numeric vectors that can be coerced to integers, or Calls to helper functions "exclude", "descendants", or "mapped".

name

A name for the concept set

id

An id for the concept set

Value

A Capr Concept Set Object

A list of Capr concepts

A list of Capr concepts

A list of Capr concepts

Functions

  • exclude(): exclude concepts

  • mapped(): Include mapped concepts

  • descendants(): Include descendants

Examples

cs(1, 2, name = "concepts")
cs(1, c(10, 11, 2), name = "concepts")
cs(1, seq(2, 10, 2), name = "concepts")
cs(1, 2, 3, exclude(4, 5), name = "concepts")
cs(1, 2, 3, exclude(4, 5), mapped(6, 7), name = "concepts")
cs(1, 2, 3, exclude(4, 5), mapped(6, 7), descendants(8, 9), name = "concepts")
cs(descendants(1, 2, 3),  exclude(descendants(8, 9)), name = "concepts")

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