powered by
This function creates unique site IDs by appending a unique number to each occurrence of a site ID. It is intended for survey designs that have repeat visits to sites.
uniqueID(siteID)
the vector of site IDs.
A vector of unique site ID values.
# NOT RUN { siteID <- paste("Site", c(1:10, 1, 3, 5), sep="") uniqueID <- uniqueID(siteID) # }
Run the code above in your browser using DataLab