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

Doesn't work with 630 columns #80

Open
anthonypiccolo opened this issue Aug 14, 2019 · 3 comments
Open

Doesn't work with 630 columns #80

anthonypiccolo opened this issue Aug 14, 2019 · 3 comments
Labels
bug an unexpected problem or unintended behavior

Comments

@anthonypiccolo
Copy link

anthonypiccolo commented Aug 14, 2019

Hi all, I have 630 columns and can't get it to work. My code is;


library(corrr)

brand_data <- read.csv("data.csv", header = TRUE)

df <- correlate(brand_data)

df %>% fashion()

df %>% network_plot(min_cor=0)
 
df %>% rplot

The error is Error in stats::cmdscale(abs(distance)) : NA values not allowed in 'd'

However, when I run;

df <- brand_data %>% correlate() %>% focus(var1, var2, var3, var4, mirror = TRUE)

It works just fine. Is this due to a limitation in the amount of columns corrr can process?

@edgararuiz-zz
Copy link
Collaborator

Hi, can you try?

df %>%
  select_if(is.numeric) %>%
  filter_all(all_vars(!is.na(.) == TRUE)) %>%
  correlate()

@fahadshery
Copy link

filter_all(all_vars(!is.na(.))) %>% correlate() works

 filter_all(all_vars(!is.na(.) == TRUE)) %>%
  correlate()

doesnt

@topepo
Copy link
Member

topepo commented Apr 3, 2020

This reprex hangs:

library(corrr)
library(dplyr)
data(pd_speech, package = "modeldata")

df <- correlate(pd_speech %>% select(-class))

corr_info <- df %>% fashion()

corr_network <- df %>% network_plot(min_cor=0)

corr_plot <- df %>% rplot

@topepo topepo added the bug an unexpected problem or unintended behavior label Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

4 participants