Skip to content
Prev 164186 / 398506 Next

extract the digits of a number

I don't know if this is cleaner or not, but here is another way:
[1] 1 0 0 1
[1] 1 2 3 4 5 6 7 8
[1] 9 7 5 3 0 8 6 4 2 1


--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
801.408.8111