R/Inc.R

Defines functions Inc

Documented in Inc

##
## p3d:Inc.R
## 2011-12-22
##


Inc <-
function( n ) {
        n <- as.character(n)
        len <- nchar(n)
        np1 <- as.numeric(n) + 1
        np1c <- as.character(np1)
        len <- max( len, nchar(np1c))
        formatC( np1, flag = '0', width = len)
    }

Try the p3d package in your browser

Any scripts or data that you put into this service are public.

p3d documentation built on May 2, 2019, 5:25 p.m.