Re: [R] store and repeat data based on row names (loop, if statement)

2010-05-31 Thread RCulloch
Hi Jim, Many thanks - that has worked perfectly, thanks so much for your help! Best wishes, Ross -- View this message in context: http://r.789695.n4.nabble.com/store-and-repeat-data-based-on-row-names-loop-if-statement-tp2236928p2237628.html Sent from the R help mailing list archive at Nabble

Re: [R] store and repeat data based on row names (loop, if statement)

2010-05-31 Thread jim holtman
try this: > x <- read.table(textConnection("TO DISTID + 1 2.63981 'A1' + 2 0 'A1' + 3 6.95836 'A1' + 4 8.63809 'A1' + 1 0 'A1.1' + 2 2.63981 'A1.1' + 3 8.03071 'A1.1' + 4 8.90896 'A1.1' + 1 8.90896 'A2

[R] store and repeat data based on row names (loop, if statement)

2010-05-31 Thread RCulloch
Hello fellow R users, I have an issue that has me a little confused - sorry if the subject makes little sense, I wasn't sure how to refer to this problem. I have a data set I've extracted from ArcInfo (a section is shown below). It is spatial data, showing the distance from one ID to another. I w