Defines functions chooseByPriority

Documented in chooseByPriority

chooseByPriority <- function(x, choice_order){
	# Choose the lowest ocurring member of x according to 
	# choice_order
	choice_order[min(which(choice_order %in% x))]

Try the CALIBERdatamanage package in your browser

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

CALIBERdatamanage documentation built on Oct. 25, 2018, 3 a.m.