print.selection: Prints the codes in a selection

Description Usage Arguments Details Value See Also Examples

View source: R/selection.R

Description

Prints to the screen the codes included in a selection that are from dictionaries currently in use (according to getdictionary).

Usage

1
2
3
4
## S3 method for class 'selection'
print(x, ...)
## S3 method for class 'selection'
length(x)

Arguments

x

a selection object.

...

other arguments to print.selection.

Details

S3 method for the 'selection' class, a list of (Read, OPCS and/or ICD-10) terms selected from the CALIBER_DICT dictionary, stored as a logical vector with the same length as the number of rows in CALIBER_DICT.

Value

print.selection returns the selection, invisibly. length.selection returns the number of terms in the selection, that are in one of the dictionaries in use.

See Also

selection

Examples

1
2
3
setdictionary('read')
myselection <- termhas('angina')
myselection

CALIBERcodelists documentation built on Feb. 28, 2020, 3:01 a.m.