View source: R/preprocessing_removal.R
rm_id_like_columns | R Documentation |
The columns are perceived as ID-like, when they are present in the id_names vector fo strings or the column values are unique integers.
rm_id_like_columns(
data,
id_names = c("id", "nr", "number", "idx", "identification", "index"),
verbose = FALSE
)
data |
A data source, that is one of the major R formats: data.table, data.frame, matrix, and so on. |
id_names |
A vector of strings indicating which column names are perceived as ID-like. By default the list is: ['id', 'nr', 'number', 'idx', 'identification', 'index']. |
verbose |
A logical value, if set to TRUE, provides all information about preprocessing process, if FALSE gives none. |
A list containing two objects
`data`
A dataset with deleted columns.
`idx`
The indexes of removed columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.