LU_to_LUC | R Documentation |
Convert land-use transition targets to gross land-use change transition targets
LU_to_LUC(targets.from, targets.to, prior = NULL, keep_areas = "both")
targets.from |
A dataframe with columns lu and value (has to be numeric and >=0) |
targets.to |
A dataframe with columns lu and value (has to be numeric and >=0) |
prior |
A dataframe with columns lu.from, lu.to and value (has to be numeric and >=0) |
keep_areas |
Either "from", "to" or "both" (default). If |
When given two land-use targets, this function creates potential gross land-use changes between them using Fienberg rebalancing. The transitions are forced towards keeping as much targets in the same class as possible. Using the prior argument you can either fully cancel out certain transitions (value=0) or put more emphasis on them (value>>0).
The total set of land use classes is the combination of unique lu
values from
targets.from
and targets.to
. If keep_areas = "both"
the
NODATA
land use class is also created. Land use transitions
are allocated to the NODATA
class if the sum of targets.from
is not
equal to targets.to
.
A data.frame with columns lu.from, lu.to and value.
targets.from = data.frame(lu = c("crop","grass"),value = c(10,5))
targets.to = data.frame(lu = c("crop","grass","forest"),value = c(3,4,8))
prior = data.frame(lu.from = "grass", lu.to = "forest", value = 0)
res = LU_to_LUC(targets.from = targets.from,targets.to = targets.to, prior = prior)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.