Skip to content

Commit 40dc19d

Browse files
committed
Merge branch 'main' into CRAN
2 parents a63e911 + ecdd1bc commit 40dc19d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

vignettes/articles/reconstruct_multiple_patterns.Rmd

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ date: "`r Sys.Date()`"
44
output: rmarkdown::html_vignette
55
vignette: >
66
%\VignetteIndexEntry{How to reconstruct multiple patterns}
7-
%\VignetteEngine{knitr::rmarkdown}
87
%\VignetteEncoding{UTF-8}
8+
%\VignetteEngine{knitr::rmarkdown}
9+
editor_options:
10+
chunk_output_type: console
911
---
1012

1113
In case you want to reconstruct several patterns at once (e.g. for different points in time if repeated censuses are available), you can use the following code. Please be aware that the maximum number of iterations was set to `max_runs = 10` to keep the computational time low for this example. For an applied case, this value should be increased.
@@ -55,7 +57,7 @@ Secondly, to reconstruct the (numeric) marks of the observed pattern for each of
5557

5658
```{r reconstruct-marks}
5759
# get only selected marks of input (numeric marks)
58-
species_a_marks <- spatstat::subset.ppp(species_a, select = dbh)
60+
species_a_marks <- subset(species_a, select = dbh)
5961
6062
# reconstruct marks 3 times for each input pattern
6163
result_marks <- lapply(reconstructed_pattern$randomized,

0 commit comments

Comments
 (0)