Learn R Programming

SemNetCleaner (version 1.1.5)

rm.lead.space: Removes Leading Spaces

Description

Removes leading spaces that are not caught by trimws

Usage

rm.lead.space(word)

Arguments

word

Character (vector). A word that has leading spaces that cannot be removed by trimws

Value

Word without leading spaces

Examples

Run this code
# NOT RUN {
# 'trimws' should remove lead space but doesn't
trimws(lead.word)

# 'rm.lead.space' does
rm.lead.space(lead.word)

# }

Run the code above in your browser using DataLab