Update doc example code

There was a mix of tabs and spaces, so I switched everything to spaces.

I left `replaceNA`, `failNA`, and `Formula` calls as is though they're broken -- wasn't sure where they're going.