tests/testthat/_snaps/display_print_dataframe.md

display and print method works - markdown

Code
  display(correlation(iris))
Output


  Table: Correlation Matrix (pearson-method)

  |Parameter1   |   Parameter2 |     r |         95% CI | t(148) |         p |
  |:------------|:------------:|:-----:|:--------------:|:------:|:---------:|
  |Sepal.Length |  Sepal.Width | -0.12 |  (-0.27, 0.04) |  -1.44 | 0.152     |
  |Sepal.Length | Petal.Length |  0.87 |   (0.83, 0.91) |  21.65 | < .001*** |
  |Sepal.Length |  Petal.Width |  0.82 |   (0.76, 0.86) |  17.30 | < .001*** |
  |Sepal.Width  | Petal.Length | -0.43 | (-0.55, -0.29) |  -5.77 | < .001*** |
  |Sepal.Width  |  Petal.Width | -0.37 | (-0.50, -0.22) |  -4.79 | < .001*** |
  |Petal.Length |  Petal.Width |  0.96 |   (0.95, 0.97) |  43.39 | < .001*** |
  p-value adjustment method: Holm (1979)
  Observations: 150
Code
  print_md(correlation(iris))
Output


  Table: Correlation Matrix (pearson-method)

  |Parameter1   |   Parameter2 |     r |         95% CI | t(148) |         p |
  |:------------|:------------:|:-----:|:--------------:|:------:|:---------:|
  |Sepal.Length |  Sepal.Width | -0.12 |  (-0.27, 0.04) |  -1.44 | 0.152     |
  |Sepal.Length | Petal.Length |  0.87 |   (0.83, 0.91) |  21.65 | < .001*** |
  |Sepal.Length |  Petal.Width |  0.82 |   (0.76, 0.86) |  17.30 | < .001*** |
  |Sepal.Width  | Petal.Length | -0.43 | (-0.55, -0.29) |  -5.77 | < .001*** |
  |Sepal.Width  |  Petal.Width | -0.37 | (-0.50, -0.22) |  -4.79 | < .001*** |
  |Petal.Length |  Petal.Width |  0.96 |   (0.95, 0.97) |  43.39 | < .001*** |
  p-value adjustment method: Holm (1979)
  Observations: 150


Try the correlation package in your browser

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

correlation documentation built on April 4, 2025, 1:11 a.m.