Re: [R] replace text by uniqe number

2016-03-09 Thread Jim Lemon
Hi Ragia, If you have read in your data frame with read.table or similar and not specified stringsAsFactors=FALSE, the two columns will already be factors. However, unless they both contain the same number of unique values, the numbers associated with those levels won't be the same. Probably the ea

Re: [R] replace text by uniqe number

2016-03-09 Thread PIKAL Petr
)) Cheers Petr > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Ragia . > Sent: Wednesday, March 09, 2016 9:11 AM > To: r-help@r-project.org > Subject: [R] replace text by uniqe number > > Dear group > kindly if i had data fra

[R] replace text by uniqe number

2016-03-09 Thread Ragia .
Dear group kindly if i had data frame of 2 columns that has repeated URLS ..and want to replace those urls with ID's for each one so the url will have unique ID, how  can I do this thanks in advance e.g otf  data pcworld.com open.itworld.com pcworld.com storage.itworld.com salon.com