Learn R Programming

prism (version 0.2.1)

pd_stack: Stack prism data

Description

pd_stack() creates a raster stack from prism data. It is up to the user to ensure that pd is of the expected variable and temporal period, i.e., the function does no checking and will stack data with different variables or temporal periods.

prism_stack() is the deprecated version of pd_stack().

Usage

pd_stack(pd)

prism_stack(prismfile)

Arguments

pd, prismfile

A vector of prism data returned by prism_archive_ls() or prism_archive_subset().

Examples

Run this code
if (FALSE) {
get_prism_dailys(
  type="tmean", 
  minDate = "2013-06-01", 
  maxDate = "2013-06-14", 
  keepZip = FALSE
)
# get a raster stack of June 1-14 daily tmean
mystack <- prism_stack(prism_archive_subset(
  "tmean", 
  minDate = "2013-06-01", 
  maxDate = "2013-06-14"
))
}

Run the code above in your browser using DataLab