cormatrix_r_p: Correlations of all pairs o variables.

Description Usage Arguments Value Examples

View source: R/cormatrix.R

Description

Correlations of all pairs o variables.

Usage

1
2
cormatrix_r_p(numericdatanona, columnpos = NULL, filename = NULL,
  method = "pearson")

Arguments

numericdatanona

A numeric data frame

columnpos

In case you want to compute correlations of a subset of columns. Default NULL

filename

Optional parameter, if provided a string, it will output the plot in a pdf in the working directory. Default NULL

method

the methods inherited from rcorr. Default "pearson". Other possibility is "spearman".

Value

If a file name is indicated, an output pdf plot. Otherwise, prints to the graphic device.

A matrix with lower triangle R pearson correlations, and upper triangle the p-values

Examples

1
2
3

MoisesExpositoAlonso/moiR documentation built on Dec. 24, 2021, 10:12 p.m.