correlation {rexposome} | R Documentation

## Creation of an ExposomeCorr from an ExposomeSet.

### Description

Method to calculate the correlation between the exposures of an ExposomeSet. Only numerical-exposures (non categorical) will be computed. The function creates and returns an ExposomeCorr object.

### Usage

    correlation(object, ..., warnings = TRUE)

### Arguments

`object` | `ExposomeSet` which exposures will be used to calculate their correlation
`...` | Other arguments passed to cor, cramersV or to lm.
`warnings` | (default `TRUE`) If set to `FALSE` warnings will not be displayed.

### Value

`ExposomeCorr` with the correlation between the selected exposures and their description

### See Also

plotCorrelation to plot the correlations of an ExposomeCorr, clustering to see how the exposures can cluster samples, pca to compute PCA on exposures

### Examples

    data("exposome")
    expo.c <- correlation(expo)
    expo.c
    expo.c.table <- extract(expo.c)

[Package rexposome version 1.6.0 Index]