Hi without other details it is probably impossible to give you any reasonable advice. Do you have your data already in R? What is their form? Are they in 2 columns in data frame? How did you get them paired?
So without some more information probably nobody will invest his time as it seems no trivial to me. Regards Petr r-help-boun...@r-project.org napsal dne 24.08.2010 20:28:42: > > > > > Dear R Helpers, > > > I am a newbie and recently got introduced to R. I have a large database > containing the names of bank branch offices along-with other details. I am > into Operational Risk as envisaged by BASEL II Accord. > > > I am trying to express my problem and I am using only an indicative data which > comes in coded format. > > > > > A (branch) B (controlled by) > > > 144 > 145 > 146 > 147 144 > 148 145 > 149 147 > 151 146 > ...... ....... > > ...... ....... > > > where 144's etc are branch codes in a given city and B is subset of A. > > > > > If a branch code appearing in "A" also appears in "B" (which is paired with > some otehr element of A e.g. 144 appearing in A, also appears in "B" and is > paired with 147 of "A" and likewise), then that means 144 is controlling > operations of bank office 147. Again, 147 itself appears again in B and is > paired with bank branch coded 149. Thus, 149 is controlled by 147 and 147 is > controlled by 144. Likewise there are more than 700 hundred branch name codes available. > > > My objective is to group them as follows - > > > Bank Branch > > > 144 147 149 > > > 145 > > > 146 151 > > > 148 > ..... > > > or even the following output will do. > > > 144 > 147 > 149 > > > 145 > > > 146 > 151 > > > 148 > 151 > ...... > > > I understand I should be writing some R code to begin with which I had tried > also but as of now I am helpless. Please guide me. > > > Mike > > > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.