tests/testthat/_snaps/response.md

response() output matches snapshot

{
  "type": "list",
  "attributes": {
    "class": {
      "type": "character",
      "attributes": {},
      "value": ["tbl_df", "tbl", "data.frame"]
    },
    "row.names": {
      "type": "integer",
      "attributes": {},
      "value": [1, 2, 3]
    },
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["value", "n", "n_pos", "prop", "mean_response", "sd", "lo", "hi", "sig"]
    },
    "response_name": {
      "type": "character",
      "attributes": {},
      "value": ["y"]
    },
    "grouping_name": {
      "type": "character",
      "attributes": {},
      "value": ["x"]
    },
    "response_classes": {
      "type": "integer",
      "attributes": {
        "names": {
          "type": "character",
          "attributes": {},
          "value": ["positive", "other"]
        }
      },
      "value": [1, 0]
    },
    "pos_class_supplied": {
      "type": "logical",
      "attributes": {},
      "value": [true]
    },
    "mean_all": {
      "type": "double",
      "attributes": {},
      "value": [0.18]
    }
  },
  "value": [
    {
      "type": "character",
      "attributes": {},
      "value": ["B", "A", "C"]
    },
    {
      "type": "integer",
      "attributes": {},
      "value": [55, 30, 15]
    },
    {
      "type": "integer",
      "attributes": {},
      "value": [9, 1, 8]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.16363636, 0.03333333, 0.53333333]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.16363636, 0.03333333, 0.53333333]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.37335498, 0.18257419, 0.51639778]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.0885542, 0.00590859, 0.3011698]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.28263746, 0.16670391, 0.75190465]
    },
    {
      "type": "integer",
      "attributes": {
        "levels": {
          "type": "character",
          "attributes": {},
          "value": ["lo", "none", "hi"]
        },
        "class": {
          "type": "character",
          "attributes": {},
          "value": ["factor"]
        }
      },
      "value": [2, 1, 3]
    }
  ]
}


jedwards24/response documentation built on Jan. 14, 2022, 5:35 p.m.