tests/testthat/_snaps/crt.md

Default behavior works

{
  "type": "list",
  "attributes": {
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["nc", "mrt", "rtsd", "ies", "rcs", "lisas"]
    },
    "row.names": {
      "type": "integer",
      "attributes": {},
      "value": [1]
    },
    "class": {
      "type": "character",
      "attributes": {},
      "value": ["tbl_df", "tbl", "data.frame"]
    }
  },
  "value": [
    {
      "type": "integer",
      "attributes": {},
      "value": [16]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [1.16407176]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.89045377]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [2.91017939]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.36804972]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [2.24093193]
    }
  ]
}

Works with grouping variable

{
  "type": "list",
  "attributes": {
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["id", "nc", "mrt", "rtsd", "ies", "rcs", "lisas"]
    },
    "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": [16, 26]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [1.16407176, 0.88690383]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.89045377, 0.66131113]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [2.91017939, 1.36446743]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.36804972, 0.79407152]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [2.24093193, 1.36606927]
    }
  ]
}


psychelzh/dataproc.iquizoo documentation built on Oct. 20, 2024, 6:26 p.m.