R/getfield.R

Defines functions getfield

getfield <- function(data, field, whichline, pattern, replacement){
	tmp <- data[grep(field, data) + whichline] 
	tmp <- sub(tmp, pattern = pattern, replacement = replacement)
	return(tmp)
}

Try the muRL package in your browser

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

muRL documentation built on Aug. 22, 2023, 9:11 a.m.