tests/testthat/_snaps/reinf.md

Default behavior works

{
  "type": "list",
  "attributes": {
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["pc_learn", "pc_test", "pc_approach", "pc_avoid"]
    },
    "row.names": {
      "type": "integer",
      "attributes": {},
      "value": [1]
    },
    "class": {
      "type": "character",
      "attributes": {},
      "value": ["tbl_df", "tbl", "data.frame"]
    }
  },
  "value": [
    {
      "type": "double",
      "attributes": {},
      "value": [0.4]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.4]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.4]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.4]
    }
  ]
}

Works with grouping variable

{
  "type": "list",
  "attributes": {
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["id", "pc_learn", "pc_test", "pc_approach", "pc_avoid"]
    },
    "row.names": {
      "type": "integer",
      "attributes": {},
      "value": [1, 2]
    },
    "class": {
      "type": "character",
      "attributes": {},
      "value": ["tbl_df", "tbl", "data.frame"]
    }
  },
  "value": [
    {
      "type": "integer",
      "attributes": {},
      "value": [1, 2]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.4, 0.65]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.4, 0.65]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.4, 0.6]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.4, 0.7]
    }
  ]
}


psychelzh/preproc.iquizoo documentation built on Oct. 20, 2024, 6:27 p.m.