Re: [R] Data separated by spaces, getting data into R using fiel

2009-09-08 Thread Barry Rowlingson
On Tue, Sep 8, 2009 at 7:05 PM, Lauri Nikkinen wrote: > Well, yeah, Henrique's solutions works fine with this data. Thanks for > that, although this is not so generic solutions which I was looking > after. As I originally posted, I was looking for solution which uses > the field-width information,

Re: [R] Data separated by spaces, getting data into R using fiel

2009-09-08 Thread Lauri Nikkinen
Well, yeah, Henrique's solutions works fine with this data. Thanks for that, although this is not so generic solutions which I was looking after. As I originally posted, I was looking for solution which uses the field-width information, as Ted pointed out. But as I already mentioned, it seems that

Re: [R] Data separated by spaces, getting data into R using fiel

2009-09-08 Thread Ted Harding
On 08-Sep-09 16:17:00, David Winsemius wrote: > On Sep 8, 2009, at 12:00 PM, Lauri Nikkinen wrote: >> Ok, I think that I have to give up and try to get this data separated >> by some char. It seem pretty much impossible to separate those fields. >> Thanks for your help and efforts. > > The solutio

Re: [R] Data separated by spaces, getting data into R using fiel

2009-09-08 Thread Ted Harding
Lauri, Having looked at your example file, and examined its byte-by-byte content, it is a plain ASCII file which gives exactly the same layout as you originally posted. This, along with the field-width information you originally supplied, is not sufficient to determine a unique dcomposition into fi

Re: [R] Data separated by spaces, getting data into R using fiel

2009-09-08 Thread Ted Harding
On 08-Sep-09 12:21:53, Lauri Nikkinen wrote: > This data is from database and the maximum length of a field is > defined. I mean that every column has a maximum length and I want to > use this maximum length as a separator. So if one "cell" in that > column is shorter than the maximum, "cell" shoul