BestVectorTable {cleanerR} | R Documentation |
BestVectorTable
Asks for a data.table and some parameters and returns the best combination of collums to predict the missing valueBestVectorTable
Asks for a data.table and some parameters and returns the best combination of collums to predict the missing value
BestVectorTable(df, goal, maxi, repetitions, trigger = 1, ratio = 0.99)
df |
A data.table with the missing values you wish to fill |
goal |
The collum with the missing values you wish to fill |
maxi |
What will be the length of possible combinations you will test example if 2 they will test up to all possible pairs of collums |
repetitions |
Measure of error, the bigger the less likely you will get the right prediction |
trigger |
When you pair all possible combination of tuples a percentage of them will show only once, trigger rejects the set if this percentage is higher than this value |
ratio |
Rejects collumns that the ratio of unique values to total values is higher than this value, primary keys have ratio equal to 1 |