I have an indicator function I am displaying in an R manual. I am trying to make it as one line (and more readable) so it looks good in the HTML version of the R documentation.
I'm looking to make the current function more streamlined. Dason did this for me previously using max, but I don't think I can make that work in this case.
So here was what Dason did before...
became...
How can I streamline this indicator function (maybe it already is but I thought I'd throw this out in case there's a better way):
I'm looking to make the current function more streamlined. Dason did this for me previously using max, but I don't think I can make that work in this case.
So here was what Dason did before...

became...

How can I streamline this indicator function (maybe it already is but I thought I'd throw this out in case there's a better way):
