R/chooseByPriority.R

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 Nov. 23, 2021, 3 p.m.