as_treenetdf.data.frame function

Convert a data.frame to a treenetdf