Skip to content

Commit

Permalink
Update SpectralAnalysis.R
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveEdge1 authored May 24, 2024
1 parent a1537ae commit 993efba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion incomplete/SpectralAnalysis.R
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ ggplot(mtm2, aes(x=Period, y=Power)) +
theme_light()

x.ts <- ts(df4[,2], start=c(1912), end = c(2024),frequency = 12)
stl1 <- stl(xt1, s.window=12)
stl1 <- stl(x.ts, s.window=12)
stlOut <- as.data.frame(stl1$time.series)
df7 <- cbind(df3[,1], stlOut$remainder[1:length(df3$Date)])
names(df7)[2] <- "anomaly"
Expand Down

0 comments on commit 993efba

Please sign in to comment.