percentSelect: Randomly select a percent of the points in a 'pp3' object.

View source: R/rapt_pp3-manipulate.R

percentSelectR Documentation

Randomly select a percent of the points in a pp3 object.

Description

Function randomly selects a certain percent of points within an original pp3 object. This function was created to be used in random relabeling of point patterns.

Usage

percentSelect(perc, pattern)

Arguments

perc

The fraction of points from the original pattern that are to be selected. A value between 0 and 1.

pattern

The original pp3 object to be selected from.

s

Seed for the random selection

Value

A pp3 object containing only the selected points.


aproudian2/rapt documentation built on Dec. 15, 2022, 4:24 a.m.