tests/testthat/_snaps/staircase.md

Default behavior works

{
  "type": "list",
  "attributes": {
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["thresh_peak_valley", "thresh_last_block"]
    },
    "row.names": {
      "type": "integer",
      "attributes": {},
      "value": [1]
    },
    "class": {
      "type": "character",
      "attributes": {},
      "value": ["tbl_df", "tbl", "data.frame"]
    }
  },
  "value": [
    {
      "type": "double",
      "attributes": {},
      "value": [147.08333333]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [140]
    }
  ]
}

Works with grouping variable

{
  "type": "list",
  "attributes": {
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["id", "thresh_peak_valley", "thresh_last_block"]
    },
    "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": [147.08333333, 150]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [140, 148.75]
    }
  ]
}


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