Skip to content
Prev 258683 / 398502 Next

UNIX-like "cut" command in R

On Mon, 2 May 2011, Gabor Grothendieck wrote:

            
That gives me a few more functions to study.  Of course the new code 
(using read.fwf() and textConnection()) is not doing what was requested 
and it requires some work to compute the widths from the given numbers 
(c(1:3, 12:15, 17:26) has to be converted to c(3, 8, 4, 1, 10)).

Mike