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

Dataframe input no longer working #42

Closed
ImagingCore opened this issue Feb 1, 2019 · 2 comments
Closed

Dataframe input no longer working #42

ImagingCore opened this issue Feb 1, 2019 · 2 comments
Assignees
Labels
Milestone

Comments

@ImagingCore
Copy link

I have been using EulerR 4.1.0 with data frame input with variables looking something this:

Apple Banana Orange
1 0 1
0 1 0
0 0 1
1 1 0

Unfortunately, this doesn't seem to be compatible with the most recent EulerR 5.0.0 version. Would it be possible to preserve this original input format? I've tried other work arounds, but it gets pretty ugly. I'm not an R master, so I wouldn't be surprised if I'm missing something here. Any advice would be much appreciated.

Many thanks!

@jolars jolars added the bug label Feb 2, 2019
@jolars jolars self-assigned this Feb 2, 2019
@jolars
Copy link
Owner

jolars commented Feb 2, 2019

Thanks for catching this. This is a bug. In the meanwhile, you can get around it by doing

d <- data.frame(Apple = c(1, 0, 0, 1), 
                Banana = c(0, 1, 0, 1),
                Orange = c(1, 0, 1, 0))
d <- as.matrix(d)
mode(d) <- "logical"
plot(euler(d))

@jolars jolars added this to the 5.0.1 milestone Feb 2, 2019
@jolars jolars closed this as completed in 76b8356 Feb 2, 2019
@ImagingCore
Copy link
Author

Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants