is_valid_primary_key function

Is a Key a Valid Potential Primary Key for a data.frame?