Thanks for your explanation about how to use external variables! I'm interested if you have more resources on the recommended ways to manage external variables in the operations. I also had seen https://uwdata.github.io/arquero/api/#addFunction, but I could not make it work.
Since writing this, I've come to see that the recommend way is to bind parameters to the table, which are then available for computation through a special variable inside functions $.
Defining separate ops is also possible, but not always necessary.
So for instance, given
my_name = "Wesleyan University"
then
table.filter(d => op.equal(d.INSTNM, my_name)).view()
will not work, but
table.params({name: my_name}).filter((d, $) => op.equal(d.INSTNM, $.name)).view()
works nicely!