Learn R Programming

healthcareai (version 1.2.4)

calculateAllCorrelations: Correlation analysis on an input table over all numeric columns

Description

Calculate correlations between every numeric column in a table

Usage

calculateAllCorrelations(df)

Arguments

df

A data frame

Value

A data frame with column names and corresponding correlations with the target column

References

http://healthcareai-r.readthedocs.io

See Also

healthcareai

Examples

Run this code
# NOT RUN {
df <- data.frame(a=c(1,2,3,4,5,6),
b=c(6,5,4,3,2,1),
c=c(3,4,2,1,3,5),
d=c('M','F','F','F','M','F')) #<- is ignored

dfResult <- calculateAllCorrelations(df)
dfResult
# }

Run the code above in your browser using DataLab