Remove first argument to `by`

I've tried to make all the changes to remove the first argument to `by` from discussion in #517 

Lots of small changes in many files, so, it's likely that I forgot something.
compatibility with R that is