R/base-conversion.R
base_n.Rd
Convert between base numbers
base_n(x, from = 10, to = 10)
A vector of integers
An integer base to convert to and from; from must be an integer from 1 to 10 and to can currently only be 10.
from
1
10
to
The A vector of integers converted from base from to base to
base_n(c(24, 22, 16), from = 7) #> [1] 18 16 13