-
Notifications
You must be signed in to change notification settings - Fork 11
/
cs.Rd
61 lines (47 loc) · 1.3 KB
/
cs.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/conceptSet.R
\name{cs}
\alias{cs}
\alias{exclude}
\alias{mapped}
\alias{descendants}
\title{Create a concept set}
\usage{
cs(..., name, id = NULL)
exclude(...)
mapped(...)
descendants(...)
}
\arguments{
\item{...}{One or more numeric vectors that can be coerced to integers, or
Calls to helper functions "exclude", "descendants", or "mapped".}
\item{name}{A name for the concept set}
\item{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
}
\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.
}
\section{Functions}{
\itemize{
\item \code{exclude()}: exclude concepts
\item \code{mapped()}: Include mapped concepts
\item \code{descendants()}: Include descendants
}}
\examples{
cs(1, 2)
cs(1, c(1, 10, 2))
cs(1, seq(2, 10, 2))
cs(1, 2, 3, exclude(4, 5))
cs(1, 2, 3, exclude(4, 5), mapped(6, 7))
cs(1, 2, 3, exclude(4, 5), mapped(6, 7), descendants(8, 9))
cs(descendants(1, 2, 3), exclude(descendants(8, 9)))
}