discretization_method
objectR/as_discretization_method.R
as_discretization_method.Rd
Cast a character value into discretization_method
object, using the list of possible methods in spm_methods
.
as_discretization_method(name, method)
# S4 method for character,ANY
as_discretization_method(name)
# S4 method for missing,`function`
as_discretization_method(method)
[character] The name of the method.
[character] If custom method, the function to use. See
spm_discretize
for more details.
An objectof class discretization_method
.
as_discretization_method("tesselate_voronoi")
#>
#> ‒‒ Discretization method ‒‒
#> → Name : 'tesselate_voronoi'
#>