R/smedmad.R

Defines functions smedmad

smedmad <-
function(pos,v)
	c(median(v[pos[1]:pos[2]],na.rm=T),mad(v[pos[1]:pos[2]],na.rm=T))

Try the CNprep package in your browser

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

CNprep documentation built on May 24, 2022, 5:05 p.m.