merge_rast_and_shape: Merge and arrange raster and shape data frame

View source: R/merge_rast_and_shape.R

merge_rast_and_shapeR Documentation

Merge and arrange raster and shape data frame

Description

This functions merges the two data frames of post prob frequency obtained from extract_raster_postprob and extract_raster_postprob functions. Then it orders it by descending postprob value, compute the cumulated sum of pixels and points and convert it in percent

Usage

merge_rast_and_shape(rast_df, shape_df, dataset = "train")

Arguments

rast_df

Data frame of postprob/frequency (from extract_raster_postprob function)

shape_df

Data frame of postprob/frequency (from extract_shape_postprob function)

dataset

a character "train" or "valid

Value

a df whith postprob values, number of pixels and points it represents and their cumulated sum and percent.

Author(s)

Melody Premaillon


MelodyPremaillon/valwoe documentation built on April 16, 2022, 12:46 a.m.