[R] Odp: Generating unque patient IDs

Petr PIKAL petr.pikal at precheza.cz
Wed Jan 11 17:32:36 CET 2012


Hi
> 
> Dear group,
> 
> I am trying to prepare a NONMEM friendly dataset for population PK
> analysis. My patient IDs are 10 digit long and NONMEM is losing precison
> and rouding the last couple of digits.  I need to generate unique 
Patient
> IDs fromt he current 10-digit IDs.  Ihave total 250 subjects so I
> appreciate if anybody can suggest me a way to code this in R.

I would start with

?abbreviate
and check uniqueness with 
?unique or ?duplicated

Regards
Petr


> 
> Regards,
> Ayyappa
> 
>    [[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at 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.



More information about the R-help mailing list