Learn R Programming

beautier (version 2.6.12)

remove_empty_lines: Remove all lines that are only whitespace

Description

Remove all lines that are only whitespace

Usage

remove_empty_lines(lines, trim = FALSE)

Value

the lines with text

Arguments

lines

character vector with text

trim

FALSE if indentation must be preserved, TRUE will remove all surrounding whitespace

Author

Richèl J.C. Bilderbeek