print.selection {CALIBERcodelists}R Documentation

Prints the codes in a selection

Description

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

Usage

## 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

setdictionary('read')
myselection <- termhas('angina')
myselection

[Package CALIBERcodelists version 0.2-11 Index]