[R] Generating unque patient IDs

David Winsemius dwinsemius at comcast.net
Wed Jan 11 17:51:48 CET 2012


On Jan 11, 2012, at 11:12 AM, Ayyappa Chaturvedula wrote:

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

Are you sure?
> 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.

They should not be input or managed as numbers but rather as character  
variables. If you want them output without quotes, then fine, R can do  
that when specified.


-- 
David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list