Skip to content
New issue

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

cor() function output possibly changed #32

Open
mvanrongen opened this issue Sep 26, 2024 · 0 comments
Open

cor() function output possibly changed #32

mvanrongen opened this issue Sep 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mvanrongen
Copy link
Collaborator

cor function was giving him outputs with more columns than expected (pearson method now also produces confidence intervals?) and the existing code in the materials wasn't working properly (matrix operations were failing, essentially)

cor_pear<-df %>%

  • select(-state) %>%
  • cor_test(method = "pearson") %>%
  • select(var1, var2, cor)

cor_spear<-df %>%

  • select(-state) %>%
  • cor_test(method = "spearman") %>%
  • select(var1, var2, cor)

cor_diff<- cor_pear - cor_spear
Error in FUN(left, right) : non-numeric argument to binary operator

@mvanrongen mvanrongen added the bug Something isn't working label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant