tests/testthat/_snaps/cpt.md

Default behavior works

{
  "type": "list",
  "attributes": {
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["nc", "mrt", "rtsd", "dprime", "commissions", "omissions"]
    },
    "row.names": {
      "type": "integer",
      "attributes": {},
      "value": [1]
    },
    "class": {
      "type": "character",
      "attributes": {},
      "value": ["tbl_df", "tbl", "data.frame"]
    }
  },
  "value": [
    {
      "type": "integer",
      "attributes": {},
      "value": [19]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.5998979]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.4631781]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [2.79159852]
    },
    {
      "type": "integer",
      "attributes": {},
      "value": [1]
    },
    {
      "type": "integer",
      "attributes": {},
      "value": [0]
    }
  ]
}

Works with grouping variable

{
  "type": "list",
  "attributes": {
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["id", "nc", "mrt", "rtsd", "dprime", "commissions", "omissions"]
    },
    "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": "integer",
      "attributes": {},
      "value": [20, 18]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [1.34363152, 1.53438086]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [1.47114892, 1.15924207]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [3.36204386, 2.16580127]
    },
    {
      "type": "integer",
      "attributes": {},
      "value": [0, 1]
    },
    {
      "type": "integer",
      "attributes": {},
      "value": [0, 1]
    }
  ]
}


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