Skip to contents

An S3 object of class master_matrix. See function prepare_master_matrix.

Format

A list of 6 elements:

data_matrix

data.frame with 6276 rows and 10 columns

preselected_sites

NULL

region

object of class SpatVector

mask

NULL

raster_base

object of class SpatRaster

PCA_results

list of length 4

Examples

m_matrix <- read_master(system.file("extdata/m_matrix.rds",
                                    package = "biosurvey"))

print(m_matrix)
#> data_matrix:
#>    Longitude Latitude Mean_temperature Max_temperature Min_temperature
#> 8  -117.0833 32.58333              170             266              71
#> 9  -116.9167 32.58333              169             293              59
#> 10 -116.7500 32.58333              165             318              44
#> 11 -116.5833 32.58333              153             326              23
#> 12 -116.4167 32.58333              146             329               9
#> 13 -116.2500 32.58333              148             333               7
#>    Annual_precipitation Prec_wettest_month Prec_driest_month       PC1
#> 8                   234                 46                 1 -1.752933
#> 9                   277                 52                 1 -1.728394
#> 10                  336                 64                 2 -1.696348
#> 11                  409                 78                 2 -1.845195
#> 12                  400                 76                 1 -2.063613
#> 13                  320                 60                 1 -2.181253
#>          PC2
#> 8  1.0409917
#> 9  0.5996405
#> 10 0.2890784
#> 11 0.4419228
#> 12 0.5029680
#> 13 0.3238374
#> ...
#> 
#> preselected_sites:
#> Empty
#> 
#> region:
#>  class       : SpatVector 
#>  geometry    : polygons 
#>  dimensions  : 1, 11  (geometries, attributes)
#>  extent      : -118.4042, -86.7014, 14.55055, 32.71846  (xmin, xmax, ymin, ymax)
#>  coord. ref. : +proj=longlat +datum=WGS84 +no_defs 
#>  names       :   FIPS   ISO2   ISO3    UN   NAME   AREA   POP2005 REGION
#>  type        : <fact> <fact> <fact> <int> <fact>  <int>     <num>  <int>
#>  values      :     MX     MX    MEX   484 Mexico 190869 1.043e+08     19
#>  SUBREGION    LON   LAT
#>      <int>  <num> <num>
#>         13 -102.5 23.95
#> 
#> mask:
#> Empty
#> 
#> raster_base:
#> class       : SpatRaster 
#> dimensions  : 109, 190, 1  (nrow, ncol, nlyr)
#> resolution  : 0.1666667, 0.1666667  (x, y)
#> extent      : -118.3333, -86.66667, 14.5, 32.66667  (xmin, xmax, ymin, ymax)
#> coord. ref. : lon/lat WGS 84 (EPSG:4326) 
#> source(s)   : memory
#> name        : base 
#> min value   :    1 
#> max value   :    1 
#> 
#> PCA_results:
#> Standard deviations (1, .., p=6):
#> [1] 1.85160952 1.31751471 0.69508561 0.57046987 0.13183993 0.09866885
#> 
#> Rotation (n x k) = (6 x 6):
#>                   PC1        PC2          PC3        PC4        PC5        PC6
#> variables_1 0.3983975 -0.4988548 -0.137355047 -0.1532950  0.4770020 -0.5679143
#> variables_2 0.0861679 -0.6843294  0.397093482  0.5079773 -0.2343494  0.2315697
#> variables_3 0.4664766 -0.2431007 -0.387802811 -0.4783965 -0.3413308  0.4770122
#> variables_4 0.4878816  0.2956408 -0.007712883  0.2691096 -0.5999334 -0.4921062
#> variables_5 0.4602686  0.2865628 -0.247407807  0.5447366  0.4595736  0.3699704
#> variables_6 0.4078951  0.2328465  0.782169563 -0.3470426  0.1729588  0.1313832