importDataframe function

Convert a dataframe into a repgrid object.