R/medcodeis.R

Defines functions medcodeis

Documented in medcodeis

medcodeis <- function(medcodes = integer(0)){
	# Returns a selection object with the given medcodes selected.
	# Arguments: vector of medcodes

	# Ensure that dictionaries are loaded
	loadDICT()
	
	medcodes <- as.integer(medcodes)
	as.selection(CALIBER_DICT$medcode %in% medcodes)
}

Try the CALIBERcodelists package in your browser

Any scripts or data that you put into this service are public.

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