We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
correlate seems do not support two input dataframe with same rowsize and different colsize, which works in base cor function.
correlate
cor
## copy your code to the clipboard and run: library(tidyverse) library(corrr) iris.sub1 <- iris %>% select (Sepal.Length) iris.sub2 <- iris %>% select (Sepal.Width, Petal.Length, Petal.Width) correlate (iris.sub1, iris.sub2) #> Correlation computed with #> • Method: 'pearson' #> • Missing treated using: 'pairwise.complete.obs' #> Error in `as_cordf()`: #> ! Input object x is not a square. cor (iris.sub1, iris.sub2) #> Sepal.Width Petal.Length Petal.Width #> Sepal.Length -0.1175698 0.8717538 0.8179411
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The problem
correlate
seems do not support two input dataframe with same rowsize and different colsize, which works in basecor
function.Reproducible example
The text was updated successfully, but these errors were encountered: