Just prints the normal output of stats::cor.test()
.
Examples
knitr::knit_print(cor.test(rnorm(100), rnorm(100)))
#> No viewer found, probably documenting or testing
#>
#>
#>
#> ```
#>
#> Pearson's product-moment correlation
#>
#> data: rnorm(100) and rnorm(100)
#> t = -1.2783, df = 98, p-value = 0.2042
#> alternative hypothesis: true correlation is not equal to 0
#> 95 percent confidence interval:
#> -0.31652398 0.07011384
#> sample estimates:
#> cor
#> -0.128068
#>
#> ```
#>
#>