read.ts (file, header = FALSE, sep = "", skip = 0, ...)
ts
start
data (sunspots) st <- start(sunspots) fr <- frequency(sunspots) write (sunspots, "sunspots", ncolumns=1) x <- read.ts ("sunspots", start=st, frequency=fr) plot (x) system ("rm -f sunspots")
Run the code above in your browser using DataLab