[R] Automatic Recoding
Thomas.Chesney at nottingham.ac.uk
Thu Sep 1 16:54:24 CEST 2011
I have a text file full of numbers (it's a edgelist for a graph) and I would like to recode the numbers as they are way too big to work with. So for instance the following:
i.e. all 676529098667 would become 0, all 1000198767829 would become 1 etc.
If I read all the values into a matrix, is there a pre-existing function that can do the recoding?
Thomas ChesneyThis message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
More information about the R-help