# NOT RUN {
df <- createDataFrame(cbind(model = rownames(mtcars), mtcars))
head(select(df, corr(df$mpg, df$hp)))
# }
# NOT RUN {
# }
# NOT RUN {
corr(df, "mpg", "hp")
corr(df, "mpg", "hp", method = "pearson")
# }
Run the code above in your browser using DataLab