View source: R/read_trimmed_lines.R
| read_trimmed_lines | R Documentation |
Read lines, thereby trimming empty spaces around the strings and removing empty lines
read_trimmed_lines(file, skipNul = TRUE, ...)
file |
A text file |
skipNul |
Skip NULL line (passed to |
... |
Other paratmers than |
Character vector of trimmed, non-empty lines.
lines <- " ABC \n\tHBV\n\nFCB \n\n"
trimmedLines <- read_trimmed_lines(textConnection(lines))
stopifnot(identical(trimmedLines, c("ABC", "HBV", "FCB")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.