Open fmichonneau opened 7 years ago
+1
Ran into the same issue on my end. Got around by using as.data.frame()
, but there shouldn't be any reason why it can't take a tibble directly?
I think this can be fixed by changing line 5 of Helper.funcs.R
to
column <- data[[i]]
The problem is that tibbles don't automatically convert to a vector when subset to a single column.
You could also use
column <- data[, i, drop=TRUE]
but that will only work with tibble >= 1.4.1 (see tidyverse/tibble#311)
Duplicate of https://github.com/hms-dbmi/UpSetR/issues/71
Looks like this was "solved" two years ago by @mariobecerra but never pulled, so the problem still persists in version 1.4.0
Yes, and I saw several other pull requests that never got attended. You can take a look at my fork and try to use it. I would help you more but I haven't used this in a long time so I don't remember.
It would be nice to support directly data frames stored as tibbles. Currently it fails as follows (I got the same error with my own dataset):