[R] Typographical error in the documentation of function strwidth?

ALBERTO VIEIRA FERREIRA MONTEIRO albmont at centroin.com.br
Wed Mar 16 22:39:49 CET 2016


There might be a minor typographical error in the documentation of the function strwidth, namely, from

?strwidth

we get:

"Note that the ‘height’ of a string is determined only by the number of linefeeds ("\n") it contains: it is the (number of linefeeds - 1) times the line spacing plus the height of "M" in the selected font. (...)"

I think the correct phrasing should be:

"Note that the ‘height’ of a string is determined only by the number of linefeeds ("\n") it contains: it is the (number of linefeeds) times the line spacing plus the (number of linefeeds + 1) times the height of "M" in the selected font. (...)"

Alberto Monteiro



More information about the R-help mailing list