powered by
Calculate correlations between every numeric column in a table
calculateAllCorrelations(df)
A data frame
A data frame with column names and corresponding correlations with the target column
http://healthcareai-r.readthedocs.io
healthcareai
# 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