powered by
Counts words, characters and non-whitespace characters in a string. Is used in rmdcount, see details there.
rmdcount
rmdwcl(rmd, space = "[[:space:]]", word = "[[:space:]]+")
character: R Markdown document as string
character: pattern to split a text at spaces (default: '[[:space:]]')
'[[:space:]]'
character: pattern to split a text at word boundaries (default: '[[:space:]]+')
'[[:space:]]+'
a list
# NOT RUN { file <- system.file('rmarkdown/rstudio_pdf.Rmd', package="rmdwc") fcont <- readChar(file, file.info(file)$size) rmdwcl(fcont) # }
Run the code above in your browser using DataLab