R/Substraction.R

Defines functions Substraction

Substraction <-
function(data){
  med<-get_median(data)
  new_data=matrix(0,nrow = dim(data)[1],ncol = dim(data)[2])
  for (i in 1:dim(data)[1]) {
    new_data[i,]=data[i,]-med
  }
  return(new_data)
}

Try the ftsa package in your browser

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

ftsa documentation built on May 29, 2024, 2:47 a.m.