corsig: corsig

Description Usage Arguments Value Examples

View source: R/corsig.R

Description

This function follows stats::cor results to provide correlation results and significance based on p-values in a table

Usage

1
corsig(.data, decimals = 2, method = "pearson", numbered = T)

Arguments

.data

a dataframe or matrix with numeric values

decimals

the number of decimals that are shown in the correlations

method

methods used based on stats::cor methods

numbered

whether to number the row and column names to condense results

Value

a dataframe with correlations and significance based on p-values

Examples

1
2
3
4
irisnum <- iris %>%
  select_if(is.numeric)
corsig(irisnum, decimals = 3, method = "kendall", numbered = T)
corsig(irisnum, decimals = 2, method = "pearson", numbered = F)

MarvinLawPhD/datasummariser documentation built on Aug. 11, 2020, 6:25 p.m.