Readts: Input a Time Series

Description Usage Arguments Value Author(s) See Also Examples

Description

This function inputs time series stored in ASCII in a format that the first line in the file is a title, next few lines, beginning with a \#, are comments, and the remaining lines contain the data. Here is an example:

Changes In Global Temperature, Annual, 1880-1985 #Surface air "temperature change" for the globe, 1880-1985. #Degrees Celsius. "Temperature change" actually means temperature #Surface Air Temperature", `Journal of Geophysical Research`, Vol. 92, -.40 -.37 -.43 .... ............... .27 .42 .02 .30 .09 .05

Usage

1
Readts(file = "", freq = 1, start = 1, VerboseQ=TRUE)

Arguments

file

location for input file

freq

tsp parameter, =1, annual, =12 monthly etc

start

tsp parameter

VerboseQ

normally prompt for arguments but set VerboseQ=FALSE to automate

Value

ts object with attribute 'title'

Author(s)

A.I. McLeod

See Also

scan, ts,

Examples

1
2
3
#You will need to change save the data given above in a file
#and change the directory as appropriate
#z<-Readts(file="d:/datasets/mhsets/annual/globtp.1", start=1880, VerboseQ=FALSE)

FitAR documentation built on May 2, 2019, 3:22 a.m.