This function creates a new PlanningUnitPoints object.

PlanningUnitPoints(coords, ids)

Arguments

coords

base::matrix() coordinates for each point.

ids

integer planning unit ids.

Value

A new PlanningUnitPoints object.

See also

Examples

# \dontrun{
# create PlanningUnitPoints object
x <- PlanningUnitPoints(matrix(rnorm(150), ncol = 1), seq_len(150))

# print object
print(x)
#> An object of class "PlanningUnitPoints"
#> Slot "coords":
#>               [,1]
#>   [1,]  1.53491576
#>   [2,] -0.41619872
#>   [3,] -0.52054380
#>   [4,]  0.85058387
#>   [5,]  0.33449657
#>   [6,] -0.82935177
#>   [7,] -0.21869594
#>   [8,] -1.54508372
#>   [9,]  0.23322978
#>  [10,]  0.03106964
#>  [11,]  0.35786565
#>  [12,]  1.60862422
#>  [13,]  1.42985426
#>  [14,] -0.94833964
#>  [15,]  1.01570554
#>  [16,]  0.03773461
#>  [17,] -1.74423940
#>  [18,] -0.97007381
#>  [19,] -0.22902736
#>  [20,] -0.97484568
#>  [21,]  2.69237242
#>  [22,]  1.39239386
#>  [23,]  1.36007615
#>  [24,] -0.36541588
#>  [25,] -0.86893720
#>  [26,] -0.50655673
#>  [27,]  1.21470730
#>  [28,]  0.50695868
#>  [29,] -2.09497131
#>  [30,]  0.03407924
#>  [31,]  0.85272870
#>  [32,]  0.74322814
#>  [33,]  0.55715361
#>  [34,] -1.24858322
#>  [35,] -0.20787431
#>  [36,]  0.42396946
#>  [37,] -0.50669744
#>  [38,] -0.61152331
#>  [39,]  2.41165945
#>  [40,] -0.16495814
#>  [41,] -0.44040605
#>  [42,]  0.52197617
#>  [43,] -1.91832225
#>  [44,] -1.98264996
#>  [45,]  0.52120016
#>  [46,]  0.77778320
#>  [47,] -0.81211887
#>  [48,]  0.91074832
#>  [49,]  0.94875395
#>  [50,] -1.34804945
#>  [51,]  0.35417586
#>  [52,]  0.53026393
#>  [53,] -0.31097493
#>  [54,] -0.24415553
#>  [55,] -0.29187819
#>  [56,] -1.12808616
#>  [57,] -1.12288159
#>  [58,]  2.05393864
#>  [59,] -0.90951843
#>  [60,]  0.45837916
#>  [61,] -0.04661845
#>  [62,] -0.68095460
#>  [63,] -1.48882940
#>  [64,] -0.39251301
#>  [65,] -1.74968202
#>  [66,] -0.03866763
#>  [67,] -0.79715324
#>  [68,] -0.91592054
#>  [69,]  0.07326746
#>  [70,]  1.23817132
#>  [71,]  0.71837134
#>  [72,]  0.53946650
#>  [73,] -1.06123399
#>  [74,] -0.54073787
#>  [75,] -0.71520471
#>  [76,] -0.17892009
#>  [77,]  0.16497028
#>  [78,] -0.72740817
#>  [79,] -0.53783713
#>  [80,] -0.59966490
#>  [81,]  1.18208775
#>  [82,]  0.18921288
#>  [83,]  0.24894911
#>  [84,]  1.04664341
#>  [85,] -1.28930094
#>  [86,]  0.37511557
#>  [87,] -0.55691839
#>  [88,]  0.30242663
#>  [89,]  0.22226647
#>  [90,] -0.96216696
#>  [91,]  0.05203237
#>  [92,]  0.90004038
#>  [93,] -0.39490088
#>  [94,]  0.95414600
#>  [95,] -0.58821435
#>  [96,] -1.47658453
#>  [97,] -1.37777577
#>  [98,] -1.34567231
#>  [99,] -0.73663796
#> [100,] -0.47011150
#> [101,]  1.38060934
#> [102,]  1.67501093
#> [103,]  1.17690663
#> [104,] -0.14889834
#> [105,] -0.17782336
#> [106,]  0.80312186
#> [107,] -0.41579535
#> [108,]  1.21248959
#> [109,]  1.24036003
#> [110,]  0.68567588
#> [111,] -0.02679868
#> [112,]  0.30958051
#> [113,]  0.24986433
#> [114,] -1.35646087
#> [115,]  0.59937977
#> [116,]  0.00864779
#> [117,]  0.09071661
#> [118,] -0.65705741
#> [119,] -0.48178225
#> [120,]  0.01775788
#> [121,] -0.85953576
#> [122,]  1.35770498
#> [123,]  1.21506118
#> [124,]  1.45391292
#> [125,] -0.08591198
#> [126,] -0.61756875
#> [127,] -0.21826025
#> [128,] -1.32600521
#> [129,] -2.36220890
#> [130,] -1.40996955
#> [131,]  0.25439714
#> [132,]  0.29587030
#> [133,]  0.05678979
#> [134,] -0.10265486
#> [135,]  1.95192303
#> [136,]  0.87856596
#> [137,] -1.30661693
#> [138,]  0.09034427
#> [139,]  0.90235804
#> [140,]  0.54942132
#> [141,] -0.86983920
#> [142,] -0.03921465
#> [143,] -0.51845168
#> [144,] -0.91184962
#> [145,]  0.15031364
#> [146,]  0.44035545
#> [147,]  1.31978206
#> [148,]  0.24656113
#> [149,]  0.94182660
#> [150,] -0.34215133
#> 
#> Slot "ids":
#>   [1]   1   2   3   4   5   6   7   8   9  10  11  12  13  14  15  16  17  18
#>  [19]  19  20  21  22  23  24  25  26  27  28  29  30  31  32  33  34  35  36
#>  [37]  37  38  39  40  41  42  43  44  45  46  47  48  49  50  51  52  53  54
#>  [55]  55  56  57  58  59  60  61  62  63  64  65  66  67  68  69  70  71  72
#>  [73]  73  74  75  76  77  78  79  80  81  82  83  84  85  86  87  88  89  90
#>  [91]  91  92  93  94  95  96  97  98  99 100 101 102 103 104 105 106 107 108
#> [109] 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
#> [127] 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144
#> [145] 145 146 147 148 149 150
#> 
# }