Nothing
#' @rdname spectr
#' @export
fftpgram = function(x, deltat, periodRange = c(18, 32), pad = 50,
na.action = stats::na.fail, ...) {
period = NULL
checkX(x)
checkSingleNum(deltat, 0, FALSE)
checkPeriodRange(periodRange)
checkSingleNum(pad, 0, TRUE)
pg = stats::spec.pgram(
stats::ts(x, deltat = deltat), plot = FALSE, pad = pad,
na.action = na.action, ...)
spec = data.table(period = 1 / pg$freq, power = pg$spec)
data.table::setorderv(spec, 'period')
spec = spec[period %between% periodRange]
return(spec)}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.