dm_has_pk | R Documentation |
dm_has_pk()
checks if a given table has columns marked as its primary key.
dm_has_pk(dm, table, ...)
dm |
A |
table |
A table in the |
... |
These dots are for future extensions and must be empty. |
A logical value: TRUE
if the given table has a primary key, FALSE
otherwise.
Other primary key functions:
dm_add_pk()
,
dm_add_uk()
,
dm_get_all_pks()
,
dm_get_all_uks()
,
dm_rm_pk()
,
dm_rm_uk()
,
enum_pk_candidates()
dm_nycflights13() %>%
dm_has_pk(flights)
dm_nycflights13() %>%
dm_has_pk(planes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.