library(tseries)
# one and a half week stock index
# data including a weekend
y <-ts(c(5353.08,5409.24,5315.57,5270.53, 5211.66,NA,NA,5160.80,5172.37,5160.80,5172.37))
stationarity_test(y, "Box-Pierce and Ljung-Box")
Run the code above in your browser using DataLab