pr_extract: pr_extract

Description Usage Arguments Value Author(s) Examples

View source: R/pr_extract.R

Description

Extract data from PhenoRice mosaics

Usage

1
pr_extract(main_folder, region)

Arguments

main_folder

location of the "Data" folder (e.g., "/home/lb/my_data/prasia/Data")

region

region to extract(e.g., "Region_3_-Central_Luzon"). If "All", all regions are extracted. Multoiple values are possible. (e.g., region = c("Region_3-_Central_Luzon", "Chippalonga"))

Value

Author(s)

Lorenzo Busetto, phD (2017) lbusett@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
# set the main folder ----
main_folder <- "/home/lb/my_data/prasia/Data"

# Suppose you want to extract data for Region: "Region_3_-_Central_Luzon" :
# --> extract it from the full shapefile
Region_name <- "Region_3_-_Central_Luzon"

# "1) run "pr_extract" on the region ----

pr_extract(main_folder,
          region = "Region_name")

## End(Not run)

lbusett/phenoriceR documentation built on May 18, 2019, 9:17 p.m.