nutterb / pixiedust

Tables So Beautifully Fine-Tuned You Will Believe It's Magic.
179 stars 18 forks source link

Round sprinkle is not generating the right length replacement #30

Closed nutterb closed 8 years ago

nutterb commented 8 years ago

Sometimes, the round sprinkle produces the warning

## Warning in y[!is.na(y)] <- round(y[!is.na(y)], digits): number of items to
## replace is not a multiple of replacement length

The cause of the warning needs to be found and exterminated.

nutterb commented 8 years ago

Found it. I wasn't applying the indexing to both the value and the rounding argument. Oopsie.