Force a non-ultrametric phylo object to be ultrametric with phytools::force.ultrametric().
phylo
phytools::force.ultrametric()
Useful links