Nothing
`splitTrainTest` <-
function(dat, numTrain = length(dat)-10){
if (!inherits(dat, "ts")) stop("dat must be a time series object.")
props = attributes(dat)$tsp
train = ts(dat[1:numTrain], start = props[1], freq= props[3])
test = ts(dat[(numTrain+1):length(dat)], start = (props[1]+numTrain/props[3]), freq=props[3])
return(list(train= train, test=test))
}
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.