extractVector function

Returning a named vector from a treedata.table object