tests/testthat/_snaps/calc_spd_acc.md

rt_rm_out works as expected

{
  "type": "list",
  "attributes": {
    "row.names": {
      "type": "integer",
      "attributes": {},
      "value": [1]
    },
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["nc", "pc", "pcsd", "mrt", "mrt_all", "rtsd", "ies", "rcs", "lisas"]
    },
    "class": {
      "type": "character",
      "attributes": {},
      "value": ["data.frame"]
    }
  },
  "value": [
    {
      "type": "integer",
      "attributes": {},
      "value": [10]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.5]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.51298918]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [2.44307232]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [1.49729309]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [3.99091085]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [4.88614463]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.33393596]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [6.33293105]
    }
  ]
}

No error when acc is perfect

{
  "type": "list",
  "attributes": {
    "row.names": {
      "type": "integer",
      "attributes": {},
      "value": [1]
    },
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["nc", "pc", "pcsd", "mrt", "mrt_all", "rtsd", "ies", "rcs", "lisas"]
    },
    "class": {
      "type": "character",
      "attributes": {},
      "value": ["data.frame"]
    }
  },
  "value": [
    {
      "type": "integer",
      "attributes": {},
      "value": [0]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0]
    },
    {
      "type": "double",
      "attributes": {},
      "value": ["NaN"]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.55151387]
    },
    {
      "type": "double",
      "attributes": {},
      "value": ["NA"]
    },
    {
      "type": "double",
      "attributes": {},
      "value": ["NaN"]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0]
    }
  ]
}
{
  "type": "list",
  "attributes": {
    "row.names": {
      "type": "integer",
      "attributes": {},
      "value": [1]
    },
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["nc", "pc", "pcsd", "mrt", "mrt_all", "rtsd", "ies", "rcs", "lisas"]
    },
    "class": {
      "type": "character",
      "attributes": {},
      "value": ["data.frame"]
    }
  },
  "value": [
    {
      "type": "integer",
      "attributes": {},
      "value": [10]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [1]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [2.44307232]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [2.44307232]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [3.99091085]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [2.44307232]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.40932067]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [2.44307232]
    }
  ]
}


psychelzh/dataprocr2 documentation built on Oct. 22, 2024, 12:22 p.m.