Re: [R] newbie questions - looping through hierarchial datafille

2005-10-05 Thread Simon Blomberg
Well I haven't seen any replies to this, so I have had a stab at the problem of getting the data into a data frame. The approach I took was to break up the data into a list, and then fill in a matrix, row by row, "filling down" a la spreadsheet style when necessary, taking advantage of the orde

Re: [R] newbie questions - looping through hierarchial datafille

2005-10-04 Thread jim holtman
Here a brute force way based on the format of you input data. Basically it reads a line in and then 'splits' it apart based on blanks and then processes based on the 'tag'. Information is stored in some global data and the '.result' is converted into a dataframe that you can work with. ===

[R] newbie questions - looping through hierarchial datafille

2005-10-03 Thread Andrew . Haywood
Dear List, Im new to R - making a transition from SAS. I have a space delimited file with the following structure. Each line in the datafile is identified by the first letter. A = Inventory (Inventory) X = Stratum (Stratum_no Total Ye=year established) P = Plot (Plot_no age slope= species) T =