https://github.com/cran/tuneR
Raw File
Tip revision: 9eca3274b33bf9ada5a67dd452bb5726627067d1 authored by Uwe Ligges on 04 February 2009, 00:00:00 UTC
version 0.2-14
Tip revision: 9eca327
smooth.R
smoother <- function(notes, method ="median", order=4, times=2){
    require("pastecs")
    notes[is.na(notes)] <- 999
    dmnotes <- unclass(pastecs::decmedian(notes, order = order, times = times)$series[,1])
    is.na(dmnotes[dmnotes==999]) <- TRUE
    return(as.numeric(dmnotes))
}
back to top