R/toParamIndexes.R

Defines functions `toParamIndexes`

`toParamIndexes` <-
function(m, string) {
	if (is.character(m)) {
		ans= matchIndexes(m, string)
		if (any(is.na(ans))) {
			stop("error: at least one parameter name cannot be found")
		} 
		return (ans)	
	}
	return (m)
}

Try the mlegp package in your browser

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

mlegp documentation built on Jan. 20, 2026, 9:07 a.m.