[Rd] read.csv reads more rows than indicated by wc -l

2012-12-19 Thread G See
When I have a csv file that is more than 6 lines long, not including the header, and one of the fields is blank for the last few lines, and there is an extra comma on of the lines with the blank field, read.csv() makes creates an extra line. I attached an example file; I'll also paste the contents

[Rd] str(..., strict.width="wrap") changes alignment of colons

2012-11-28 Thread G See
Hi, This was surprising to me and does not appear to be documented in ?str. After reading ?strwrap, I see that the problem is that "Whitespace ... in the input is destroyed". However, I thought I'd mention it because I'm not sure it is intended behavior for str(). I have a list, and the names o

Re: [Rd] Convert "\" to "/"?

2012-06-09 Thread G See
One work around is to comment out the lines that `scan` reads. (x <- back2ForwardSlash()) #c:\Users\ all.equal(x, '#c:/Users/') Or, you could pass a text arg through the dots (x <- back2ForwardSlash(text="c:\\\users")) all.equal(x, 'c:/users') HTH, Garrett On Sat, Jun 9, 20