These data input related functions are deprecated and they will be removed in the next release of hyperspec package. Now functions in package hySpc.read.txt (link) should be used as the alternatives.

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 on the system.

Details

wc() now is deprecated and will be removed from hyperSpec and hySpc.read.txt in the future. Consider using count_lines() instead for line counting.

wc() uses the system command wc. Use at your own risk.

See also

Author

C. Beleites