Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

wc

line/word/character count of ASCII files


Description

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

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

Note

'wc()' now is deprecated and will be removed from hyperSpec in future. Consider using [count_lines()] instead for line counting.

Author(s)

C. Beleites

See Also

[count_lines()]


hyperSpec

Work with Hyperspectral Data, i.e. Spectra + Meta Information (Spatial, Time, Concentration, ...)

v0.100.0
GPL (>= 3)
Authors
Claudia Beleites [aut, cre, dtc] (<https://orcid.org/0000-0003-1626-154X>), Valter Sergo [aut], Alois Bonifacio [ctb, dtc], Marcel Dahms [ctb], Björn Egert [ctb], Simon Fuller [ctb], Vilmantas Gegzna [ctb], Rustam Guliev [ctb], Bryan A. Hanson [ctb], Michael Hermes [ctb], Martin Kammer [dtc], Roman Kiselev [ctb], Sebastian Mellor [ctb]
Initial release
2021-09-13

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.