clone_pft.Rd
Creates a new pft that is a duplicate of an existing pft, including relationships with priors, species, and cultivars (if any) of the existing pft. This function mimics the 'clone pft' button in the PFTs record view page in the BETYdb web interface for PFTs that aggregate >=1 species, but adds the ability to clone the cultivar associations.
clone_pft(parent.pft.name, new.pft.name, new.pft.definition, settings)
ID of the newly created pft in database, creates new PFT as a side effect
if (FALSE) { # \dontrun{
clone_pft(parent.pft.name = "tempdecid",
new.pft.name = "mytempdecid",
new.pft.definition = "mytempdecid is a new pft",
settings = pecan_settings_list)
} # }