Re: [R] why must a named colClasses in read.table be in correct order

2015-07-08 Thread Henrik Bengtsson
Thanks for insisting; I was wrong and I'm happy to see that there is indeed code intended for named 'colClasses', which even goes back to 2004. But as you report, then names only work when length(colClasses) cols (which also explains why I though it was not supported). I'm not sure if that

Re: [R] why must a named colClasses in read.table be in correct order

2015-07-08 Thread Andreas Leha
Hi Henrik, Thanks for your reply. I am not (yet) convinced, though. The help page for read.table mentions named colClasses and if I specify colClasses for not all columns, the names are taken into account: --8---cut here---start-8--- kkk - c(a\tb,

Re: [R] why must a named colClasses in read.table be in correct order

2015-07-08 Thread Andreas Leha
Hi Henrik, Thank you very much for looking into this. And thanks for the patch! Yes, let's hope this is a typo that gets fixed. Regards, Andreas Henrik Bengtsson henrik.bengts...@ucsf.edu writes: Thanks for insisting; I was wrong and I'm happy to see that there is indeed code intended for

[R] why must a named colClasses in read.table be in correct order

2015-07-08 Thread Andreas Leha
Hi all, Apparently, the colClasses argument to read.table needs to be in the order of the columns *even when it is named*. Why is that? And where would I find it in the documentation? Here is a MWE: --8---cut here---start-8--- kkk - c(a\tb,