wbt_centroid {whitebox}R Documentation

Centroid

Description

Calculates the centroid, or average location, of raster polygon objects.

Usage

wbt_centroid(
  input,
  output,
  text_output = FALSE,
  wd = NULL,
  verbose_mode = FALSE
)

Arguments

input

Input raster file.

output

Output raster file.

text_output

Optional text output.

wd

Changes the working directory.

verbose_mode

Sets verbose mode. If verbose mode is False, tools will not print output messages.

Value

Returns the tool text outputs.


[Package whitebox version 1.4.0 Index]