R Package - generate Mondrian schema for PostgreSQL table or R data frame