Skip to content
Prev 79434 / 398502 Next

spliting an integer

Dimitri Szerman wrote:
Try:

X <- c(11999, 122000, 81997)
Y <- X %/% 10000
Z <- X - Y * 10000

See ?Arithmetic for more details.

HTH,

--sundar