The goal ofrgeopat2 is to enhance the functionality ofgeoPAT 2.
Get the released version from CRAN:
install.packages("rgeopat2")Get the development version from github:
# install.packages("devtools")devtools::install_github("Nowosad/rgeopat2")This is a basic example which shows you how to create a grid polygonbased on the geoPAT 2 header file:
library(rgeopat2)header_filepath=system.file("rawdata/Augusta2011_grid100.hdr",package ="rgeopat2")my_grid=gpat_create_grid(header_filepath)plot(my_grid)
More examples can be found inGeoPAT2 manual.