Skip to content
Prev 278840 / 398502 Next

Create an identifier variable

Try something like this:

Suppose your data object is called df:

cbind(paste("sd", 1:NROW(df), sep = ""), df)

If you are just moving from SAS check out the website (and books
associated with) http://r4stats.com -- it's got some tutorials on
moving from other platforms to R.

Michael
On Tue, Nov 29, 2011 at 2:48 PM, hyunjeehale <hyunjee.hale at gmail.com> wrote: