Combine data, type, comments, and metadata information to create a new pdata object, or check such an object for consistency
pdata(data, type, comment, metadata)
a data frame
a character vector, the same length as ncol(data)
an arbitrary list
An object of class pdata