Learn R Programming

do (version 2.0.0.1)

equal_length: Equal Length

Description

Equal Length

Usage

equal_length(x, suffix = " ", nchar, colname = FALSE, rowname = FALSE)

Value

equal length results

Arguments

x

can be number, strings, verctors, dataframe or matrix.

suffix

suffix

nchar

maximun length

colname

a logistic value, default is FALSE

rowname

a logistic value, default is FALSE

Examples

Run this code
a=c(123,1,24,5,1.22554)
equal_length(a,0)

df = data.frame(
    a=c(12,1,1.23),
    b=c('a','abcd','d')
)
equal_length(x = df,suffix = 'x')

equal_length(x = df,suffix = 0,nchar =5)

Run the code above in your browser using DataLab