A simple function to duplicate the contents of a SoilProfileCollection
object. Old profile IDs are saved as a site-level attribute (oldID
) and new IDs are generated using a numeric serial number.
duplicate(x, times = 3, oldID = ".oldID")
a SoilProfileCollection
object with 1 or more profiles
requested number of copies
site-level attribute used to store the original profile IDs
a SoilProfileCollection
object