fd_cols | R Documentation |
Returns names of columns in a data frame that may be individually functionally determined a supplied set of columns (the determinant set). This means that each returned column takes a single value for each unique combination in the determinant set of columns.
fd_cols(df, ...)
df |
A data frame. |
... |
Columns in determinant set. Given by either by name (quoted or unquoted) or integer positions. |
Any NA
s are treated as a distinct value and a warning is given.
This is far from optimised and can be slow with large data frames. The run time is approximately of order (number of columns not in the determinant set) x (number of unique rows (groups) in the determinant set). I found that 10,000 groups takes about 0.5 seconds per column.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.