Forecasting, Time Series Analysis, Fourier Transform, R, Ml So Good.
c(24)) spec.df[, "c(24)"] <- spec.pgram(TC_df$n, kernel = k, taper = 0, plot = FALSE)$spec spec.df <- reshape2::melt(spec.df, id.vars = "freq", value.name = "spec", variable.name = "kernel") spec.df freq kernel spec 1 0.000078125 c(24,24,24) 318.8043 2 0.000156250 c(24,24,24) 318.5979 3 0.000234375