Added wrapper around base::table to include NA values if present.