cropField: Crop a specified field from original data

cropFieldR Documentation

Crop a specified field from original data

Description

This function crops selected regions from the original data using an existing shapefile or user-drawn polygon.

Usage

cropField(field, shape = NULL, nPolygon = 1, nPoint = 4, cex = 1)

Arguments

field

SpatVector.

shape

a specified shape for cropping. If shape=NULL, the user will be prompted to draw one or more polygon(s).

nPolygon

number of polygons.

nPoint

number of points per polygon (4 >= nPoint <= 50).

cex

point size. Please check help("points").

Details

cropField

Value

A list with three elements:

  • shape is the specified cropped geometry, in format SpatVector.

  • cropField is the original object area without the cropped shape, in format SpatVector.

  • selectedField the cropped data (contained within the cropped shape), in format SpatVector.


filipematias23/cleanRfield documentation built on Aug. 6, 2023, 12:26 a.m.