powered by
Removes leading spaces that are not caught by trimws
trimws
rm.lead.space(word)
Character (vector). A word that has leading spaces that cannot be removed by trimws
Word without leading spaces
# 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