Finished as.factor documentation
Added the doc for by