Skip to content

Commit da2e68b

Browse files
committed
fixes #149
1 parent 4806323 commit da2e68b

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

vignettes/st.Rnw

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,10 @@ The resulting plot is shown in Figure~\ref{fig:acf}.
119119
<<fig=FALSE,eval=FALSE>>=
120120
par(mfrow=c(2,2))
121121
# select 4, 5, 6, 7
122-
for(i in rn)
123-
acf(na.omit(r5to10[i,]), main = i)
122+
for (i in rn) {
123+
x <- as.numeric(na.omit(r5to10[i, ]))
124+
acf(x, main = i)
125+
}
124126
par(mfrow=c(1,1))
125127
@
126128

@@ -130,8 +132,10 @@ par(mfrow=c(1,1))
130132
par(mfrow=c(2,2))
131133
# select 4, 5, 6, 7
132134
rn = row.names(r5to10@sp)[4:7]
133-
for(i in rn)
134-
acf(na.omit(r5to10[i,]), main = i)
135+
for (i in rn) {
136+
x <- as.numeric(na.omit(r5to10[i, ]))
137+
acf(x, main = i)
138+
}
135139
@
136140
\end{center}
137141
\caption{Autocorrelations for PM10; time lag unit in days.}

0 commit comments

Comments
 (0)