tests/testthat/_snaps/vars.md

add_vars_to_combos returns predictable results

{
  "type": "list",
  "attributes": {},
  "value": [
    {
      "type": "list",
      "attributes": {
        "names": {
          "type": "character",
          "attributes": {},
          "value": ["ballot_date", "lvl", "canton", "var_name"]
        }
      },
      "value": [
        {
          "type": "double",
          "attributes": {
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["Date"]
            }
          },
          "value": [19526]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["cantonal"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["aargau"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["age_group"]
        }
      ]
    },
    {
      "type": "list",
      "attributes": {
        "names": {
          "type": "character",
          "attributes": {},
          "value": ["ballot_date", "lvl", "canton", "var_name"]
        }
      },
      "value": [
        {
          "type": "double",
          "attributes": {
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["Date"]
            }
          },
          "value": [19526]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["cantonal"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["aargau"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["favored_party"]
        }
      ]
    },
    {
      "type": "list",
      "attributes": {
        "names": {
          "type": "character",
          "attributes": {},
          "value": ["ballot_date", "lvl", "canton", "var_name"]
        }
      },
      "value": [
        {
          "type": "double",
          "attributes": {
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["Date"]
            }
          },
          "value": [19526]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["federal"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["aargau"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["age_group"]
        }
      ]
    },
    {
      "type": "list",
      "attributes": {
        "names": {
          "type": "character",
          "attributes": {},
          "value": ["ballot_date", "lvl", "canton", "var_name"]
        }
      },
      "value": [
        {
          "type": "double",
          "attributes": {
            "class": {
              "type": "character",
              "attributes": {},
              "value": ["Date"]
            }
          },
          "value": [19526]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["federal"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["aargau"]
        },
        {
          "type": "character",
          "attributes": {},
          "value": ["favored_party"]
        }
      ]
    }
  ]
}


zdaarau/fokus documentation built on Dec. 24, 2024, 10:47 p.m.