| count.chars {parser} | R Documentation |
This follows the same rules as the parser to count the number of characters and the number of bytes in each line of a file
count.chars(file, encoding = "unknown")
file |
file path |
encoding |
encoding to assume for the file |
A matrix with 2 columns and one line per line in the input file Each line of the matrix gives :
|
the number of characters in the same line in the file |
|
the number of bytes in the same line in the file |
Romain Francois <francoisromain@free.fr>
## Not run: f <- system.file( "grammar.output", package= "parser" ) head( count.chars( f ) ) ## End(Not run)