Learn R Programming

ProfessR (version 2.4-1)

deblank: Remove blanks from strings.

Description

Remove blanks from strings.

Usage

deblank(a)

Value

Character string with no blanks.

Arguments

a

Character string

Author

Jonathan M. Lees<jonathan.lees@unc.edu>

Details

Removes all blanks from strings. The functuon works on vectors of strings, removing blanks on each element.

Examples

Run this code


j = c(' James', 'Jones ', 'Alpha Dog')

deblank(j)


Run the code above in your browser using DataLab