word_count | R Documentation |
Invoke system tool to print newline, word, and byte counts for each file.
word_count(path, count = "")
path |
Character vector of file paths. |
count |
The type of element to count, see details. |
One of five options or an empty string (default):
"lines" for newline characters (separating lines).
"words" for words separated by white space.
"chars" for individual characters.
"bytes" for total bytes, differs with multibyte characters.
"max" for the maximum display width of longest line.
A data frame of counts by file.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.