I found an error in the baseConvert program: > baseConvert(243,3,10) [1] "00000" Instead, this should return "100000"