tests/testthat/_snaps/cormatrix_to_excel.md

cormatrix_to_excel select

Code
  suppressWarnings(cormatrix_to_excel(mtcars, filename = "cormatrix1", overwrite = TRUE,
    p_adjust = "none", print.mat = TRUE, select = c("mpg", "cyl", "disp", "hp",
      "carb"), verbose = FALSE))
Output
  # Correlation Matrix (pearson-method)

  Parameter |      mpg |      cyl |     disp |       hp |    carb
  ---------------------------------------------------------------
  mpg       |          | -0.85*** | -0.85*** | -0.78*** | -0.55**
  cyl       | -0.85*** |          |  0.90*** |  0.83*** |  0.53**
  disp      | -0.85*** |  0.90*** |          |  0.79*** |   0.39*
  hp        | -0.78*** |  0.83*** |  0.79*** |          | 0.75***
  carb      |  -0.55** |   0.53** |    0.39* |  0.75*** |

  p-value adjustment method: none


   [Correlation matrix 'cormatrix1.xlsx' has been saved to working directory (or where specified).]
  NULL

cormatrix_to_excel p_adjust

Code
  suppressWarnings(cormatrix_to_excel(airquality, filename = "cormatrix1",
    overwrite = FALSE, p_adjust = "holm", print.mat = FALSE, method = "spearman",
    verbose = FALSE))
Output


   [Correlation matrix 'cormatrix1.xlsx' has been saved to working directory (or where specified).]
  NULL


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.