General Statistics for a Character Vector
This function gives general statistics for a character
vector, e.g. obtained by loading a text file with the
function, where each text line' is represented by a
character vector to be aggregated
Any of the strings must not contain
\n characters, otherwise you will get at error.
Below by 'white space' we mean the Unicode binary property
Returns an integer vector with the following named elements:
Lines- number of lines (number of non-missing strings in the vector);
LinesNEmpty- number of lines with at least one non-
Chars- total number of Unicode code points detected;
CharsNWhite- number of Unicode code points that are not
... (Other stuff that may appear in future releases of stringi).
1 2 3 4 5
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.