Learn R Programming

hyperSpec (version 0.95)

wc: wc

Description

word count of ASCII files

Usage

wc(file, flags=c("lines", "words", "bytes"))

Arguments

file
the file name or pattern
flags
the parameters to count, character vector with the long form of the parameters

Value

  • data.frame with the counts and file names, or NULL if wc is not available

Details

wc uses the system command wc