GN <- GN1000
ValidatePrimKey(x=GN, prim.key="NationalID")
## Not run:
# # Show error in case of duplicates and NULL values
# # in the primary key/ID field "NationalID"
# GN[1001:1005,] <- GN[1:5,]
# GN[1001,3] <- ""
# ValidatePrimKey(x=GN, prim.key="NationalID")## End(Not run)
Run the code above in your browser using DataLab