getCDL: Get CDL raster data

Description Usage Arguments Value Author(s) Examples

View source: R/getCDL.R

Description

getCDL retrieves CDL state raster objects for a set of years.

Usage

1
2
getCDL(x, year, alternativeUrl, location, https = TRUE,
  ssl.verifypeer = TRUE)

Arguments

x

Is either a two digit state FIPS code, a two letter abbreviation, or a state name.

year

A numerical vector. A set of years of CDL data to download.

alternativeUrl

An optional string containing an alternative url.

location

An optional string containing a location to store the file.

https

An optional boolean to turn on and off https, default is on.

ssl.verifypeer

An optional boolean to turn on and off ssl verfication, default is on.

Value

A list of CDL raster objects of interested county for a set of years.

Author(s)

Jonathan Lisic, jlisic@gmail.com

Joseph Stachelek, stachel2@msu.edu

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
# Get data for California, 2013 and 2015
# by FIPS
getCDL(6,c(2013,2015))
# Get data for California, 2013 and 2015
getCDL("California",c(2013,2015))
# Get all the west coast from 2009 to 2016
getCDL(c("CA","OR","WA"),2013:2016)

## End(Not run)

cdlTools documentation built on July 2, 2020, 1:51 a.m.

Related to getCDL in cdlTools...