Skip to content

Commit f94ea34

Browse files
committed
fix
1 parent 2e55cdf commit f94ea34

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# display and print method works - markdown
2+
3+
Code
4+
display(correlation(iris))
5+
Output
6+
7+
8+
Table: Correlation Matrix (pearson-method)
9+
10+
|Parameter1 | Parameter2 | r | 95% CI | t(148) | p |
11+
|:------------|:------------:|:-----:|:--------------:|:------:|:---------:|
12+
|Sepal.Length | Sepal.Width | -0.12 | (-0.27, 0.04) | -1.44 | 0.152 |
13+
|Sepal.Length | Petal.Length | 0.87 | (0.83, 0.91) | 21.65 | < .001*** |
14+
|Sepal.Length | Petal.Width | 0.82 | (0.76, 0.86) | 17.30 | < .001*** |
15+
|Sepal.Width | Petal.Length | -0.43 | (-0.55, -0.29) | -5.77 | < .001*** |
16+
|Sepal.Width | Petal.Width | -0.37 | (-0.50, -0.22) | -4.79 | < .001*** |
17+
|Petal.Length | Petal.Width | 0.96 | (0.95, 0.97) | 43.39 | < .001*** |
18+
p-value adjustment method: Holm (1979)
19+
Observations: 150
20+

tests/testthat/_snaps/display_print_matrix.md

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# display and print method works - markdown
2+
3+
Code
4+
display(summary(correlation(iris)))
5+
Output
6+
7+
8+
Table: Correlation Matrix (pearson-method)
9+
10+
|Parameter | Petal.Width | Petal.Length | Sepal.Width |
11+
|:------------|:-----------:|:------------:|:-----------:|
12+
|Sepal.Length | 0.82*** | 0.87*** | -0.12 |
13+
|Sepal.Width | -0.37*** | -0.43*** | |
14+
|Petal.Length | 0.96*** | | |
15+
p-value adjustment method: Holm (1979)
16+
117
# as.matrix works
218

319
Code

0 commit comments

Comments
 (0)