How can I generate a GUID in R?

前端 未结 4 1559
情书的邮戳
情书的邮戳 2020-12-10 10:54

How can I generate GUIDs and UUIDs in R?

I would like to be able to generate GUIDs based on the hardware etc. of the machine running the rsession.

As a fall

4条回答
  •  情深已故
    2020-12-10 11:37

    The optimal choice for this now is the uuid package. It consists of one function (UUIDgenerate) that doesn't rely on R's internal random number generators and so doesn't suffer any consequences from using set.seed in a session as @thelatemail's answer does. You can choose to have the UUID be generated either by the package's internal random number generator or based on time.

提交回复
热议问题