HI all,
Is there a renumbering function in R?

I would like to renumber the following id numbers

*Input file
*
  Id Father Mother  123 0 0  124 0 0  125 123 124  126 123 0  127 125 126
128 0 127  130 123 125
*Output*

 Id Father Mother  1 0 0  2 0 0  3 1 2  4 1 0  5 3 4  6 0 7  7 1 2
Any help is highly appreciated in Advance

Val K

        [[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.

Reply via email to