manualrotate: Manual calculation of land cover changes

Description Usage Arguments Value Examples

View source: R/manualrotate.R

Description

The manualrotate function analyzes land cover changes based on two raster files from the CropScape. The analysis is done in three steps. At step 1, the two raster files are converted to data tables. At step 2, the two data tables are merged together based on their coordinates. The coordinates without macthes are discarded during the merging process. At step 3, the merged data are aggregated by counting the number of pixels for each land cover change group.

Usage

1
manualrotate(datat1, datat2)

Arguments

datat1

A raster file.

datat2

A raster file.

Value

The function returns a data frame.

Examples

1
2
3
4
# Calculate land cover changes for the Champaign county (FIPS = 17109) in 2017-2018.
datat1 <- GetCDLData(aoi = '17019', year = 2017, type = 'f')
datat2 <- GetCDLData(aoi = '17019', year = 2018, type = 'f')
change <- manualrotate(datat1, datat2)

CropScapeR documentation built on Aug. 10, 2021, 9:07 a.m.