View source: R/incomplete_keys.R
| absent_keys | R Documentation |
This function returns a dataframe of key column combinations that are not present in df.
Thus if df has no key duplicates and nrow(absent_keys(df))==0 then df is complete in its keys.
absent_keys(df, key_cols = NULL, non_key_cols = NULL)
df |
Dataframe to inspect for incomplete key combinations. |
key_cols |
Character vector of key columns. |
non_key_cols |
Character vector of non-key columns. You cannot provide both |
By default if neither key_cols or non_key_cols are provided, all columns are interpreted as key columns.
Dataframe.
> a <- tibble(key_1 = c(1,1,2),
key_2 = c(1,2,1))
> absent_keys(a)
# A tibble: 1 × 2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.