as_discretization_method: Cast into a 'discretization_method' object

as_discretization_methodR Documentation

Cast into a discretization_method object

Description

Cast a character value into discretization_method object, using the list of possible methods in spm_methods.

Usage

as_discretization_method(name, method)

## S4 method for signature 'character,ANY'
as_discretization_method(name)

## S4 method for signature 'missing,function'
as_discretization_method(method)

Arguments

name

[character] The name of the method.

method

[character] If custom method, the function to use. See spm_discretize for more details.

Value

An objectof class discretization_method.

See Also

spm_methods.

Examples

as_discretization_method("tesselate_voronoi")


pedersen-fisheries-lab/spaspm documentation built on Feb. 16, 2025, 7:39 p.m.