R/deblank.R

Defines functions deblank

Documented in deblank

deblank<-function(a)
    {
        b = a
        for(i in 1:length(a) )
            {
                h = unlist( strsplit(a[i], split='') )
                b[i] = paste(h[h!=' '], collapse='')
            }
        return( b)
    }

Try the ProfessR package in your browser

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

ProfessR documentation built on Aug. 21, 2023, 9:07 a.m.