tests/testthat/_snaps/03_station_dl.md

stations_search 'coords' returns correct format

{
  "type": "list",
  "attributes": {
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["prov", "station_name", "station_id", "climate_id", "WMO_id", "TC_id", "lat", "lon", "elev", "tz", "interval", "start", "end", "normals", "normals_1981_2010", "normals_1971_2000", "distance"]
    },
    "row.names": {
      "type": "integer",
      "attributes": {},
      "value": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
    },
    "class": {
      "type": "character",
      "attributes": {},
      "value": ["tbl_df", "tbl", "data.frame"]
    }
  },
  "value": [
    {
      "type": "character",
      "attributes": {},
      "value": ["BC", "BC", "BC", "BC", "BC", "BC", "BC", "BC", "BC", "BC"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["UPPER FRASER", "UPPER FRASER", "ALEZA LAKE", "ALEZA LAKE", "MCGREGOR", "MCGREGOR", "NORCO COAL", "NORCO COAL", "SINCLAIR MILLS", "SINCLAIR MILLS"]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [659, 659, 565, 565, 615, 615, 622, 622, 648, 648]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["1098335", "1098335", "1090300", "1090300", "1095000", "1095000", "1095617", "1095617", "1097370", "1097370"]
    },
    {
      "type": "double",
      "attributes": {},
      "value": ["NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA", "NA"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": [null, null, null, null, null, null, null, null, null, null]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [54.12, 54.12, 54.12, 54.12, 54.08, 54.08, 53.82, 53.82, 54.02, 54.02]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [-121.95, -121.95, -122.07, -122.07, -121.83, -121.83, -121.92, -121.92, -121.67, -121.67]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [612.6, 612.6, 624.8, 624.8, 609.6, 609.6, 742.2, 742.2, 655.3, 655.3]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["Etc/GMT+8", "Etc/GMT+8", "Etc/GMT+8", "Etc/GMT+8", "Etc/GMT+8", "Etc/GMT+8", "Etc/GMT+8", "Etc/GMT+8", "Etc/GMT+8", "Etc/GMT+8"]
    },
    {
      "type": "character",
      "attributes": {},
      "value": ["day", "month", "day", "month", "day", "month", "day", "month", "day", "month"]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [1959, 1960, 1952, 1952, 1965, 1966, 1977, 1977, 1960, 1960]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [1962, 1962, 1980, 1980, 1975, 1975, 1978, 1978, 1965, 1965]
    },
    {
      "type": "logical",
      "attributes": {},
      "value": [false, false, false, false, false, false, false, false, false, false]
    },
    {
      "type": "logical",
      "attributes": {},
      "value": [false, false, false, false, false, false, false, false, false, false]
    },
    {
      "type": "logical",
      "attributes": {},
      "value": [false, false, false, false, false, false, false, false, false, false]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [13.73664046, 13.73664046, 14.10382885, 14.10382885, 14.22493711, 14.22493711, 20.68967037, 20.68967037, 21.67759226, 21.67759226]
    }
  ]
}


ropensci/weathercan documentation built on Sept. 24, 2023, 6:21 p.m.