clean.comments | R Documentation |
Function takes character vector of C-style lines (as passed from readLines), delete comments, spaces, empty lines, multiple semicolomns and line breaks.
clean.comments(input)
input |
character vector of C-style text lines, vector can be passed from readLines function. |
Character vector of cleaned C-style text. It can be saved to file by cat(..., sep = "\n") function.
## Not run: cTextExample (cln<-clean.comments(cTextExample)) cat(cln, file="cln.txt", sep = "\n") # save text to file
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.