mp_cid {measurementProtocol}R Documentation

Generate a random client_id

Description

This has a random number plus a timestamp

Usage

mp_cid(seed = NULL)

Arguments

seed

If you set a seed, then the random number will be the same for each value

Value

A string suitable as an Id with a random number plus a timestamp delimited by a period.

See Also

Other Measurement Protocol functions: mp_event_item(), mp_event(), mp_send()

Examples


# random Id
mp_cid()

# fix the random number (but not the timestamp)
mp_cid(1)

[Package measurementProtocol version 0.1.1 Index]