tests/testthat/_snaps/locmem.md

Default behavior works

{
  "type": "list",
  "attributes": {
    "class": {
      "type": "character",
      "attributes": {},
      "value": ["tbl_df", "tbl", "data.frame"]
    },
    "row.names": {
      "type": "integer",
      "attributes": {},
      "value": [1]
    },
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["nc_loc", "mean_dist_err", "mean_log_err"]
    }
  },
  "value": [
    {
      "type": "integer",
      "attributes": {},
      "value": [0]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [5.29306452]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [1.72903044]
    }
  ]
}

Works with grouping variable

{
  "type": "list",
  "attributes": {
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["id", "nc_loc", "mean_dist_err", "mean_log_err"]
    },
    "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": [0, 0]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [5.29306452, 5.15967742]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [1.72903044, 1.70345254]
    }
  ]
}


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