MakeTimeSeries: Make Time Series

Description Usage Arguments Author(s) Examples

Description

This function creates a time series data for eah county.

Usage

1

Arguments

link

A linking from the function GridToMap

data

A 3D array of data where the dimensions are lon, lat, and time.

names

A list of the dimnames for data. The list should have elements names lon, lat, and time. Lon and lat are numeric vectors indicating the longitude and latitude for the rows. Time is vector of dates or times that the data correspond to. This function will not work with they are not the propoer lengths and named lon, lat, and time.

Author(s)

Ander Wilson

Examples

1
2
3
4
5
6
7
8
data(GridToMapSampleData)
lon <- GridToMapSampleData$names$lon
lat <- GridToMapSampleData$names$lat
ma.overlap<- GridToMap(lon=lon, lat=lat, method="overlap",keep.states=c("MA"))
names <- GridToMapSampleData$names
data <- GridToMapSampleData$data
ts.data <- MakeTimeSeries(link = ma.overlap, data=data, names=names)
head(ts.data)

AnderWilson/GridToMaps documentation built on May 5, 2019, 4:56 a.m.