tests/testthat/_snaps/proportion_cluster_size.md

proportion_cluster_size works as expected for format_prop = FALSE

{
  "type": "list",
  "attributes": {
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["R", "k", "prop_5", "prop_10", "prop_25"]
    },
    "row.names": {
      "type": "integer",
      "attributes": {},
      "value": [1, 2, 3, 4, 5, 6, 7, 8, 9]
    },
    "class": {
      "type": "character",
      "attributes": {},
      "value": ["data.frame"]
    }
  },
  "value": [
    {
      "type": "double",
      "attributes": {},
      "value": [1, 2, 3, 1, 2, 3, 1, 2, 3]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.1, 0.1, 0.1, 0.2, 0.2, 0.2, 0.3, 0.3, 0.3]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.72803077, 0.8532689, 0.90322752, 0.56891711, 0.76277228, 0.84059606, 0.46297561, 0.69320137, 0.79201115]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.46999814, 0.68956284, 0.78628927, 0.25105412, 0.51202964, 0.64976405, 0.14601832, 0.39340829, 0.54954862]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.1172671, 0.35034513, 0.50350702, 0.01801677, 0.1401319, 0.27360663, 0.00361606, 0.05595971, 0.16017042]
    }
  ]
}


Try the superspreading package in your browser

Any scripts or data that you put into this service are public.

superspreading documentation built on April 4, 2025, 3:18 a.m.