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 May 31, 2017, 3:41 a.m.