Skip to content

Commit

Permalink
fix #8 expression input bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sgratzl committed Jun 5, 2020
1 parent 669642e commit e8403d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions r_package/R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ fromExpression = function(upsetjs, value, symbol="&", order.by="cardinality") {

toSet = function(key, value) {
structure(
list(name=key, type="set", elems=c(), cardinality=length(value)),
list(name=key, type="set", elems=c(), cardinality=value),
class="upsetjs_set"
)
}
Expand All @@ -138,7 +138,7 @@ fromExpression = function(upsetjs, value, symbol="&", order.by="cardinality") {

toCombination = function(key, value) {
structure(
list(name=key, type="composite", elems=c(), cardinality=length(value), setNames=unlist(strsplit(key, symbol))),
list(name=key, type="composite", elems=c(), cardinality=value, setNames=unlist(strsplit(key, symbol))),
class="upsetjs_combination"
)
}
Expand Down

0 comments on commit e8403d3

Please sign in to comment.