list_to_randomized: list_to_randomized

View source: R/list_to_randomized.R

list_to_randomizedR Documentation

list_to_randomized

Description

Convert list to rd_* object.

Usage

list_to_randomized(list, observed = NULL)

Arguments

list

List

observed

Observed

Details

Convert list of randomized point pattern or raster layer to a rd_* object that can be used with all functions of the package. The main purpose of this utility function is to allow an easy parallelization of the randomization approach.

For more information, please see the "Parallelization" article.

Value

rd_pat, rd_ras

See Also

randomize_raster
translate_raster
reconstruct_pattern

Examples

## Not run: 
fit_list <- lapply(X = 1:39, FUN = function(i) {fit_point_process(pattern = species_a,
n_random = 1, simplify = TRUE, return_input = FALSE, verbose = FALSE)})

list_to_randomized(list = fit_list, observed = species_a)

## End(Not run)


shar documentation built on Oct. 23, 2023, 9:06 a.m.