function to populate entire data frame with the final surface COM's grouped by pad and branch.
a data frame as generated by the collatePAD function (see details).
Before using getCOMs, the collatePAD function needs to be applied looping through the data frame generated by findPads two times. The first itteration should be over "pad", and the second itteration should be over pad and branch. Branches are generated when it's found that the PAD is of the "dual pitchfork" variety.
a data frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.