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