Readts(FitAR)R Documentation

Input a time series

Description

This function inputs time series stored in ASCII in a format I have found helpful. The first line in the file is a title. The next few lines, beginning with a #, are comments. 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

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

#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)

[Package FitAR version 1.0 Index]