powered by
Is a table of a dm referenced by another table?
dm
dm_is_referenced(dm, table)
A dm object.
A table in the dm.
TRUE if at least one foreign key exists that points to the primary key of the table argument, FALSE otherwise.
TRUE
table
FALSE
Other functions utilizing foreign key relations: dm_get_referencing_tables()
dm_get_referencing_tables()
# NOT RUN { dm_nycflights13() %>% dm_is_referenced(airports) dm_nycflights13() %>% dm_is_referenced(flights) # }
Run the code above in your browser using DataLab