wc()
uses the system command wc
. Use at your own risk.
wc(file, flags = c("lines", "words", "bytes"))
file | the file name or pattern |
---|---|
flags | the parameters to count, character vector with the long form of the parameters |
data.frame with the counts and file names, or NULL
if wc is
not available on the system.
wc()
now is deprecated and will be removed from hyperSpec
in the future. Consider using count_lines()
instead for line counting.
count_lines()
C. Beleites