tests/testthat/_snaps/03_BASS_grts.md

draw_random_samples() - with GRTS

{
  "type": "list",
  "attributes": {
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["siteID", "siteuse", "replsite", "lon_WGS84", "lat_WGS84", "stratum", "wgt", "ip", "caty", "hex_id", "province", "water", "LC1", "LC2", "LC3", "LC4", "LC5", "LC6", "geometry", "run", "num_runs", "n_samples"]
    },
    "row.names": {
      "type": "integer",
      "attributes": {},
      "value": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30]
    },
    "sf_column": {
      "type": "character",
      "attributes": {},
      "value": ["geometry"]
    },
    "agr": {
      "type": "integer",
      "attributes": {
        "names": {
          "type": "character",
          "attributes": {},
          "value": ["siteID", "siteuse", "replsite", "lon_WGS84", "lat_WGS84", "stratum", "wgt", "ip", "caty", "hex_id", "province", "water", "LC1", "LC2", "LC3", "LC4", "LC5", "LC6", "run", "num_runs", "n_samples"]
        },
        "levels": {
          "type": "character",
          "attributes": {},
          "value": ["constant", "aggregate", "identity"]
        },
        "class": {
          "type": "character",
          "attributes": {},
          "value": ["factor"]
        }
      },
      "value": ["NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA"]
    },
    "class": {
      "type": "character",
      "attributes": {},
      "value": ["sf", "data.frame"]
    }
  },
  "value": [
    {
      "type": "character",
      "attributes": {},
      "value": ["sample-1", "sample-2", "sample-3", "sample-1", "sample-2", "sample-3", "sample-1", "sample-2", "sample-3", "sample-1", "sample-2", "sample-3", "sample-1", "sample-2", "sample-3", "sample-1", "sample-2", "sample-3", "sample-1", "sample-2", "sample-3", "sample-1", "sample-2", "sample-3", "sample-1", "sample-2", "sample-3", "sample-1", "sample-2", "sample-3"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["Base", "Base", "Base", "Base", "Base", "Base", "Base", "Base", "Base", "Base", "Base", "Base", "Base", "Base", "Base", "Base", "Base", "Base", "Base", "Base", "Base", "Base", "Base", "Base", "Base", "Base", "Base", "Base", "Base", "Base"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None"]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [-88.9100963, -88.91021062, -88.91064916, -88.90979085, -88.91072596, -88.91053483, -88.90986765, -88.91028742, -88.91051607, -88.90986765, -88.91028742, -88.91051607, -88.91030618, -88.90969528, -88.90998197, -88.91007754, -88.91040175, -88.91074472, -88.9107072, -88.91007754, -88.90969528, -88.9106304, -88.91074472, -88.90977209, -88.91028742, -88.91032495, -88.90979085, -88.90979085, -88.91074472, -88.91051607]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [-31.97532193, -31.97517161, -31.9748802, -31.97515314, -31.97534963, -31.97503052, -31.97562257, -31.97564103, -31.97534039, -31.97562257, -31.97564103, -31.97534039, -31.97533116, -31.97499359, -31.97547225, -31.9756318, -31.97549071, -31.97503975, -31.9756595, -31.9756318, -31.97499359, -31.97519007, -31.97503975, -31.97546302, -31.97564103, -31.97502129, -31.97515314, -31.97515314, -31.97503975, -31.97534039]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None"]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.09090909, 0.09090909, 0.09090909, 0.09090909, 0.09090909, 0.09090909, 0.09090909, 0.09090909, 0.09090909, 0.09090909, 0.09090909, 0.09090909, 0.09090909, 0.09090909, 0.09090909, 0.09090909, 0.09090909, 0.09090909, 0.09090909, 0.09090909, 0.09090909, 0.09090909, 0.09090909, 0.09090909, 0.09090909, 0.09090909, 0.09090909, 0.09090909, 0.09090909, 0.09090909]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None", "None"]
    },
    {
      "type": "character",
      "attributes": {
        "class": {
          "type": "character",
          "attributes": {},
          "value": ["glue", "character"]
        }
      },
      "value": ["SA_34", "SA_31", "SA_16", "SA_47", "SA_10", "SA_19", "SA_41", "SA_25", "SA_18", "SA_41", "SA_25", "SA_18", "SA_26", "SA_51", "SA_38", "SA_33", "SA_22", "SA_11", "SA_09", "SA_33", "SA_51", "SA_15", "SA_11", "SA_46", "SA_25", "SA_27", "SA_47", "SA_47", "SA_11", "SA_18"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["ON", "ON", "ON", "ON", "ON", "ON", "ON", "ON", "ON", "ON", "ON", "ON", "ON", "ON", "ON", "ON", "ON", "ON", "ON", "ON", "ON", "ON", "ON", "ON", "ON", "ON", "ON", "ON", "ON", "ON"]
    },
    {
      "type": "logical",
      "attributes": {},
      "value": [false, false, false, false, false, true, false, false, true, false, false, true, true, true, false, false, false, false, false, false, true, true, false, false, false, false, false, false, false, true]
    },
    {
      "type": "double",
      "attributes": {
        "units": {
          "type": "list",
          "attributes": {
            "names": {
              "type": "character",
              "attributes": {},
              "value": ["numerator", "denominator"]
            },
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["symbolic_units"]
            }
          },
          "value": [
            {
              "type": "character",
              "attributes": {},
              "value": ["m", "m"]
            },
            {
              "type": "character",
              "attributes": {},
              "value": []
            }
          ]
        },
        "class": {
          "type": "character",
          "attributes": {},
          "value": ["units"]
        }
      },
      "value": [238156.98604072, 142894.19162443, 173205.08075689, 357235.47906108, 73612.15932168, 173205.08075689, 188360.52532312, 69282.03230276, 132068.87407713, 188360.52532312, 69282.03230276, 132068.87407713, 188360.52532312, 201350.90637988, 223001.54147449, 212176.22392719, 359400.54257054, 171040.01724743, 15155.44456623, 212176.22392719, 201350.90637988, 177535.20777581, 171040.01724743, 233826.8590218, 69282.03230276, 179700.27128527, 357235.47906108, 357235.47906108, 171040.01724743, 132068.87407713]
    },
    {
      "type": "double",
      "attributes": {
        "units": {
          "type": "list",
          "attributes": {
            "names": {
              "type": "character",
              "attributes": {},
              "value": ["numerator", "denominator"]
            },
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["symbolic_units"]
            }
          },
          "value": [
            {
              "type": "character",
              "attributes": {},
              "value": ["m", "m"]
            },
            {
              "type": "character",
              "attributes": {},
              "value": []
            }
          ]
        },
        "class": {
          "type": "character",
          "attributes": {},
          "value": ["units"]
        }
      },
      "value": [108253.17547305, 253312.43060695, 339914.97098539, 290118.51026779, 400536.7492503, 290118.51026779, 591062.33808288, 223001.54147449, 467653.7180436, 591062.33808288, 223001.54147449, 467653.7180436, 309604.08185294, 389711.431703, 394041.55872192, 300943.82781509, 171040.01724743, 309604.08185294, 549926.13140312, 300943.82781509, 389711.431703, 335584.84396647, 309604.08185294, 452498.27347737, 223001.54147449, 173205.08075689, 290118.51026779, 290118.51026779, 309604.08185294, 467653.7180436]
    },
    {
      "type": "double",
      "attributes": {
        "units": {
          "type": "list",
          "attributes": {
            "names": {
              "type": "character",
              "attributes": {},
              "value": ["numerator", "denominator"]
            },
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["symbolic_units"]
            }
          },
          "value": [
            {
              "type": "character",
              "attributes": {},
              "value": ["m", "m"]
            },
            {
              "type": "character",
              "attributes": {},
              "value": []
            }
          ]
        },
        "class": {
          "type": "character",
          "attributes": {},
          "value": ["units"]
        }
      },
      "value": [515285.11525174, 446003.08294899, 911491.73748312, 634363.6082721, 452498.27347737, 387546.36819354, 484974.22611929, 948297.81714396, 671169.68793294, 484974.22611929, 948297.81714396, 671169.68793294, 565081.57596935, 569411.70298827, 374555.98713677, 673334.7514424, 476313.97208144, 277128.12921102, 634363.6082721, 673334.7514424, 569411.70298827, 686325.13249917, 277128.12921102, 376721.05064623, 948297.81714396, 532605.62332743, 634363.6082721, 634363.6082721, 277128.12921102, 671169.68793294]
    },
    {
      "type": "double",
      "attributes": {
        "units": {
          "type": "list",
          "attributes": {
            "names": {
              "type": "character",
              "attributes": {},
              "value": ["numerator", "denominator"]
            },
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["symbolic_units"]
            }
          },
          "value": [
            {
              "type": "character",
              "attributes": {},
              "value": ["m", "m"]
            },
            {
              "type": "character",
              "attributes": {},
              "value": []
            }
          ]
        },
        "class": {
          "type": "character",
          "attributes": {},
          "value": ["units"]
        }
      },
      "value": [1091192.00876839, 764267.41883977, 632198.54476264, 840044.64167091, 1162639.10458061, 1145318.59650492, 853035.02272767, 669004.62442348, 926647.18204935, 853035.02272767, 669004.62442348, 926647.18204935, 1043560.61156025, 887676.03887905, 801073.49850061, 781587.92691546, 904996.54695474, 1091192.00876839, 751277.037783, 781587.92691546, 887676.03887905, 911491.73748312, 1091192.00876839, 740451.7202357, 669004.62442348, 1221095.81933606, 840044.64167091, 840044.64167091, 1091192.00876839, 926647.18204935]
    },
    {
      "type": "double",
      "attributes": {
        "units": {
          "type": "list",
          "attributes": {
            "names": {
              "type": "character",
              "attributes": {},
              "value": ["numerator", "denominator"]
            },
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["symbolic_units"]
            }
          },
          "value": [
            {
              "type": "character",
              "attributes": {},
              "value": ["m", "m"]
            },
            {
              "type": "character",
              "attributes": {},
              "value": []
            }
          ]
        },
        "class": {
          "type": "character",
          "attributes": {},
          "value": ["units"]
        }
      },
      "value": [1301203.16918612, 1424611.7892254, 835714.51465198, 855200.08623713, 952627.94416288, 872520.59431282, 720966.14865055, 978608.70627642, 1054385.92910755, 720966.14865055, 978608.70627642, 1054385.92910755, 1221095.81933606, 803238.56201007, 840044.64167091, 959123.13469127, 1115007.70737246, 792413.24446276, 941802.62661558, 959123.13469127, 803238.56201007, 664674.49740456, 792413.24446276, 985103.8968048, 978608.70627642, 948297.81714396, 855200.08623713, 855200.08623713, 792413.24446276, 1054385.92910755]
    },
    {
      "type": "double",
      "attributes": {
        "units": {
          "type": "list",
          "attributes": {
            "names": {
              "type": "character",
              "attributes": {},
              "value": ["numerator", "denominator"]
            },
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["symbolic_units"]
            }
          },
          "value": [
            {
              "type": "character",
              "attributes": {},
              "value": ["m", "m"]
            },
            {
              "type": "character",
              "attributes": {},
              "value": []
            }
          ]
        },
        "class": {
          "type": "character",
          "attributes": {},
          "value": ["units"]
        }
      },
      "value": [1729885.74405942, 1957217.41255283, 2095781.47715834, 2011344.00028936, 1877110.06270277, 2119597.17576241, 2149908.06489487, 2100111.60417726, 1732050.80756888, 2149908.06489487, 2100111.60417726, 1732050.80756888, 1656273.58473774, 2074130.84206373, 2355589.09829367, 2061140.46100696, 1961547.53957175, 2284142.00248146, 2030829.57187451, 2061140.46100696, 2074130.84206373, 2212694.90666924, 2284142.00248146, 2199704.52561247, 2100111.60417726, 1933401.71394876, 2011344.00028936, 2011344.00028936, 2284142.00248146, 1732050.80756888]
    },
    {
      "type": "list",
      "attributes": {
        "class": {
          "type": "character",
          "attributes": {},
          "value": ["sfc_POINT", "sfc"]
        },
        "precision": {
          "type": "double",
          "attributes": {},
          "value": [0]
        },
        "bbox": {
          "type": "double",
          "attributes": {
            "names": {
              "type": "character",
              "attributes": {},
              "value": ["xmin", "ymin", "xmax", "ymax"]
            },
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["bbox"]
            }
          },
          "value": [25, 43.30127019, 275, 259.80762114]
        },
        "crs": {
          "type": "list",
          "attributes": {
            "names": {
              "type": "character",
              "attributes": {},
              "value": ["input", "wkt"]
            },
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["crs"]
            }
          },
          "value": [
            {
              "type": "character",
              "attributes": {},
              "value": ["+proj=lcc +lat_0=0 +lon_0=-85 +lat_1=44.5 +lat_2=53.5 +x_0=930000 +y_0=6430000 +datum=NAD83 +units=m +no_defs"]
            },
            {
              "type": "character",
              "attributes": {},
              "value": ["PROJCRS[\"unknown\",\n    BASEGEOGCRS[\"unknown\",\n        DATUM[\"North American Datum 1983\",\n            ELLIPSOID[\"GRS 1980\",6378137,298.257222101,\n                LENGTHUNIT[\"metre\",1]],\n            ID[\"EPSG\",6269]],\n        PRIMEM[\"Greenwich\",0,\n            ANGLEUNIT[\"degree\",0.0174532925199433],\n            ID[\"EPSG\",8901]]],\n    CONVERSION[\"unknown\",\n        METHOD[\"Lambert Conic Conformal (2SP)\",\n            ID[\"EPSG\",9802]],\n        PARAMETER[\"Latitude of false origin\",0,\n            ANGLEUNIT[\"degree\",0.0174532925199433],\n            ID[\"EPSG\",8821]],\n        PARAMETER[\"Longitude of false origin\",-85,\n            ANGLEUNIT[\"degree\",0.0174532925199433],\n            ID[\"EPSG\",8822]],\n        PARAMETER[\"Latitude of 1st standard parallel\",44.5,\n            ANGLEUNIT[\"degree\",0.0174532925199433],\n            ID[\"EPSG\",8823]],\n        PARAMETER[\"Latitude of 2nd standard parallel\",53.5,\n            ANGLEUNIT[\"degree\",0.0174532925199433],\n            ID[\"EPSG\",8824]],\n        PARAMETER[\"Easting at false origin\",930000,\n            LENGTHUNIT[\"metre\",1],\n            ID[\"EPSG\",8826]],\n        PARAMETER[\"Northing at false origin\",6430000,\n            LENGTHUNIT[\"metre\",1],\n            ID[\"EPSG\",8827]]],\n    CS[Cartesian,2],\n        AXIS[\"(E)\",east,\n            ORDER[1],\n            LENGTHUNIT[\"metre\",1,\n                ID[\"EPSG\",9001]]],\n        AXIS[\"(N)\",north,\n            ORDER[2],\n            LENGTHUNIT[\"metre\",1,\n                ID[\"EPSG\",9001]]]]"]
            }
          ]
        },
        "n_empty": {
          "type": "integer",
          "attributes": {},
          "value": [0]
        }
      },
      "value": [
        {
          "type": "double",
          "attributes": {
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["XY", "POINT", "sfg"]
            }
          },
          "value": [175, 129.90381057]
        },
        {
          "type": "double",
          "attributes": {
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["XY", "POINT", "sfg"]
            }
          },
          "value": [150, 173.20508076]
        },
        {
          "type": "double",
          "attributes": {
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["XY", "POINT", "sfg"]
            }
          },
          "value": [50, 259.80762114]
        },
        {
          "type": "double",
          "attributes": {
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["XY", "POINT", "sfg"]
            }
          },
          "value": [250, 173.20508076]
        },
        {
          "type": "double",
          "attributes": {
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["XY", "POINT", "sfg"]
            }
          },
          "value": [25, 129.90381057]
        },
        {
          "type": "double",
          "attributes": {
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["XY", "POINT", "sfg"]
            }
          },
          "value": [75, 216.50635095]
        },
        {
          "type": "double",
          "attributes": {
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["XY", "POINT", "sfg"]
            }
          },
          "value": [225, 43.30127019]
        },
        {
          "type": "double",
          "attributes": {
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["XY", "POINT", "sfg"]
            }
          },
          "value": [125, 43.30127019]
        },
        {
          "type": "double",
          "attributes": {
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["XY", "POINT", "sfg"]
            }
          },
          "value": [75, 129.90381057]
        },
        {
          "type": "double",
          "attributes": {
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["XY", "POINT", "sfg"]
            }
          },
          "value": [225, 43.30127019]
        },
        {
          "type": "double",
          "attributes": {
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["XY", "POINT", "sfg"]
            }
          },
          "value": [125, 43.30127019]
        },
        {
          "type": "double",
          "attributes": {
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["XY", "POINT", "sfg"]
            }
          },
          "value": [75, 129.90381057]
        },
        {
          "type": "double",
          "attributes": {
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["XY", "POINT", "sfg"]
            }
          },
          "value": [125, 129.90381057]
        },
        {
          "type": "double",
          "attributes": {
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["XY", "POINT", "sfg"]
            }
          },
          "value": [275, 216.50635095]
        },
        {
          "type": "double",
          "attributes": {
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["XY", "POINT", "sfg"]
            }
          },
          "value": [200, 86.60254038]
        },
        {
          "type": "double",
          "attributes": {
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["XY", "POINT", "sfg"]
            }
          },
          "value": [175, 43.30127019]
        },
        {
          "type": "double",
          "attributes": {
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["XY", "POINT", "sfg"]
            }
          },
          "value": [100, 86.60254038]
        },
        {
          "type": "double",
          "attributes": {
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["XY", "POINT", "sfg"]
            }
          },
          "value": [25, 216.50635095]
        },
        {
          "type": "double",
          "attributes": {
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["XY", "POINT", "sfg"]
            }
          },
          "value": [25, 43.30127019]
        },
        {
          "type": "double",
          "attributes": {
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["XY", "POINT", "sfg"]
            }
          },
          "value": [175, 43.30127019]
        },
        {
          "type": "double",
          "attributes": {
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["XY", "POINT", "sfg"]
            }
          },
          "value": [275, 216.50635095]
        },
        {
          "type": "double",
          "attributes": {
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["XY", "POINT", "sfg"]
            }
          },
          "value": [50, 173.20508076]
        },
        {
          "type": "double",
          "attributes": {
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["XY", "POINT", "sfg"]
            }
          },
          "value": [25, 216.50635095]
        },
        {
          "type": "double",
          "attributes": {
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["XY", "POINT", "sfg"]
            }
          },
          "value": [250, 86.60254038]
        },
        {
          "type": "double",
          "attributes": {
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["XY", "POINT", "sfg"]
            }
          },
          "value": [125, 43.30127019]
        },
        {
          "type": "double",
          "attributes": {
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["XY", "POINT", "sfg"]
            }
          },
          "value": [125, 216.50635095]
        },
        {
          "type": "double",
          "attributes": {
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["XY", "POINT", "sfg"]
            }
          },
          "value": [250, 173.20508076]
        },
        {
          "type": "double",
          "attributes": {
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["XY", "POINT", "sfg"]
            }
          },
          "value": [250, 173.20508076]
        },
        {
          "type": "double",
          "attributes": {
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["XY", "POINT", "sfg"]
            }
          },
          "value": [25, 216.50635095]
        },
        {
          "type": "double",
          "attributes": {
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["XY", "POINT", "sfg"]
            }
          },
          "value": [75, 129.90381057]
        }
      ]
    },
    {
      "type": "integer",
      "attributes": {},
      "value": [1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]
    }
  ]
}


dhope/BASSr documentation built on April 12, 2024, 9:54 p.m.