-
I am trying to use Arquero with an Observable Inputs.select where multiple values can be selected, such as
For an Input.select where only one value can be selected, I know that I can use Arquero to filter with
What would I do to find "all table rows where SourceColumn is one of my sourceFilterValues"? (the Arquero equivalent of R's Update: I guess i'll use a vanilla JS solution instead of trying to create a regex for op.match. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
If anyone else is wondering, I used conventional JavaScript instead of a table expression since I didn't see a way to use Arquero specifically for this:
|
Beta Was this translation helpful? Give feedback.
-
FWIW, I always just make the filtering values into a new table and do an inner join for this kind of thing: filteredTable = myTable
.join(aq.table({SourceColumn: sourceFilterValue[0] === "All" ? available_source_array : sourceFilterValue})) |
Beta Was this translation helpful? Give feedback.
If anyone else is wondering, I used conventional JavaScript instead of a table expression since I didn't see a way to use Arquero specifically for this:
.filter(aq.escape((d) => sourceFilterValue[0] !== "All" ? sourceFilteringValue.includes(d.SourceColumn) : true) )