Description Usage Arguments Author(s) Examples
This function creates a time series data for eah county.
1 | MakeTimeSeries(link, data, names)
|
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. |
Ander Wilson
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.