factor gets deep flag

This is documented in the docstring with an example.
Merge pull request #2141 from smichr/factor

factor gets deep flag