tests/testthat/_snaps/simulation_functions-poisson_process.md

sim_poisson_community() - default argument values are as expected

Code
  sim_poisson_community(s_pool = 3L, n_sim = 100L, seed = 42L)
Output
  $census
                 x           y   species
  1   0.9148060435 0.626245345 species_1
  2   0.9370754133 0.217157698 species_1
  3   0.2861395348 0.216567311 species_1
  4   0.8304476261 0.388945029 species_1
  5   0.6417455189 0.942455692 species_1
  6   0.5190959491 0.962608014 species_1
  7   0.7365883146 0.739855279 species_1
  8   0.1346665972 0.733245906 species_1
  9   0.6569922904 0.535761290 species_1
  10  0.7050647840 0.002272966 species_1
  11  0.4577417762 0.608937453 species_1
  12  0.7191122517 0.836801559 species_1
  13  0.9346722472 0.751522563 species_1
  14  0.2554288243 0.452731573 species_1
  15  0.4622928225 0.535789994 species_1
  16  0.9400145228 0.537376695 species_1
  17  0.9782264284 0.001380844 species_1
  18  0.1174873617 0.355665954 species_1
  19  0.4749970816 0.612133090 species_1
  20  0.5603327462 0.828942131 species_1
  21  0.9040313873 0.356721999 species_1
  22  0.1387101677 0.410635126 species_1
  23  0.9888917289 0.573475899 species_1
  24  0.9466682326 0.589678304 species_1
  25  0.0824375581 0.719657292 species_1
  26  0.5142117843 0.394973045 species_1
  27  0.3902034671 0.919203929 species_1
  28  0.9057381309 0.962570294 species_1
  29  0.4469696281 0.233523526 species_1
  30  0.8360042600 0.724497600 species_1
  31  0.7375956178 0.903634525 species_1
  32  0.8110551413 0.603474085 species_1
  33  0.3881082828 0.631507299 species_1
  34  0.6851697294 0.937385850 species_1
  35  0.0039483388 0.850482751 species_1
  36  0.8329160803 0.579820899 species_1
  37  0.0073341469 0.821403924 species_1
  38  0.2076589728 0.113718609 species_1
  39  0.9066014078 0.764507759 species_1
  40  0.6117786434 0.623613457 species_1
  41  0.3795592405 0.148446607 species_1
  42  0.4357715850 0.080264467 species_1
  43  0.0374310329 0.464069551 species_1
  44  0.9735399138 0.779368161 species_1
  45  0.4317512489 0.733527960 species_1
  46  0.9575765966 0.817230444 species_1
  47  0.8877549055 0.170162481 species_1
  48  0.6399787695 0.944720326 species_1
  49  0.9709666104 0.293623841 species_1
  50  0.6188382073 0.149072052 species_1
  51  0.3334272113 0.719378591 species_1
  52  0.3467482482 0.324085952 species_1
  53  0.3984854114 0.778809499 species_1
  54  0.7846927757 0.394441002 species_1
  55  0.0389364911 0.678592868 species_1
  56  0.7487953862 0.775825043 species_1
  57  0.6772768302 0.187869044 species_2
  58  0.1712643304 0.029085819 species_2
  59  0.2610879638 0.135713797 species_2
  60  0.5144129347 0.680164178 species_2
  61  0.6756072745 0.934822954 species_2
  62  0.9828171979 0.550494084 species_2
  63  0.7595442676 0.601766235 species_2
  64  0.5664884241 0.196994488 species_2
  65  0.8496897186 0.535236611 species_2
  66  0.1894739354 0.179555739 species_2
  67  0.2712866147 0.451886494 species_2
  68  0.8281584852 0.317053352 species_2
  69  0.6932048204 0.116174670 species_2
  70  0.2405447396 0.186102157 species_2
  71  0.0429887960 0.729730097 species_2
  72  0.1404790941 0.411872071 species_2
  73  0.2163854151 0.414049682 species_2
  74  0.4793985642 0.480310129 species_2
  75  0.1974103423 0.427494466 species_2
  76  0.7193558377 0.136490360 species_2
  77  0.0078847387 0.824679406 species_2
  78  0.3754899646 0.592304243 species_2
  79  0.5144077083 0.794396978 species_2
  80  0.0015705542 0.769032426 species_2
  81  0.5816040025 0.918056417 species_2
  82  0.1579052082 0.862629777 species_2
  83  0.3590283059 0.316975238 species_2
  84  0.6456318784 0.259260576 species_3
  85  0.7758233626 0.742266452 species_3
  86  0.5636468416 0.747361117 species_3
  87  0.2337033986 0.917904034 species_3
  88  0.0899805163 0.793191209 species_3
  89  0.0856120649 0.133329618 species_3
  90  0.3052183695 0.287749752 species_3
  91  0.6674265147 0.194676144 species_3
  92  0.0002388966 0.784109383 species_3
  93  0.2085699569 0.128872162 species_3
  94  0.9330341273 0.129089284 species_3
  95  0.9256447486 0.072253111 species_3
  96  0.7340943010 0.053129483 species_3
  97  0.3330719834 0.531874436 species_3
  98  0.5150633298 0.112308242 species_3
  99  0.7439746463 0.743187720 species_3
  100 0.6191592400 0.731315477 species_3

  $x_min_max
  [1] 0 1

  $y_min_max
  [1] 0 1

  attr(,"class")
  [1] "community"

sim_poisson_coords() - default argument values are as expected

Code
  sim_poisson_coords(abund_vec = 1:4, seed = 42L)
Output
  $census
             x         y   species
  1  0.9148060 0.4577418 species_1
  2  0.9370754 0.7191123 species_2
  3  0.2861395 0.9346722 species_2
  4  0.8304476 0.2554288 species_3
  5  0.6417455 0.4622928 species_3
  6  0.5190959 0.9400145 species_3
  7  0.7365883 0.9782264 species_4
  8  0.1346666 0.1174874 species_4
  9  0.6569923 0.4749971 species_4
  10 0.7050648 0.5603327 species_4

  $x_min_max
  [1] 0 1

  $y_min_max
  [1] 0 1

  attr(,"class")
  [1] "community"


Try the mobsim package in your browser

Any scripts or data that you put into this service are public.

mobsim documentation built on May 29, 2024, 8:15 a.m.