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

2016-03-19 Thread peter dalgaard
I don't think so. I'll give you that it should either be the (number of lines - 1)*spacing or (number of linefeeds)*spacing, but it's correct to count the height of "M" only on the top line. -pd It is correct as written > On 16 Mar 2016, at 22:39 , ALBERTO VIEIRA FERREIRA MONTEIRO >

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

2016-03-19 Thread ALBERTO VIEIRA FERREIRA MONTEIRO
Peter Dalgaard wrote: > I don't think so. I'll give you that it should either be the (number of lines > - 1)*spacing > or (number of linefeeds)*spacing, but it's correct to count the height of "M" > only on the top line. > > -pd > > It is correct as written > Ah, ok, I see now. The "line

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

2016-03-19 Thread peter dalgaard
On 17 Mar 2016, at 14:27 , ALBERTO VIEIRA FERREIRA MONTEIRO wrote: > Peter Dalgaard wrote: > >> I don't think so. I'll give you that it should either be the (number of >> lines - 1)*spacing >> or (number of linefeeds)*spacing, but it's correct to count the height of

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

2016-03-19 Thread ALBERTO VIEIRA FERREIRA MONTEIRO
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