Description Usage Arguments Value Examples
Takes data frame, returns data frame where each column is subjected to the passed in corruption functions.
1 2 |
df |
Data frame to be corrupted |
numeric_cor |
Names of columns to be corrupted numerically |
string_cor |
Names of columns to be corrupted with string corruption. |
replace_cor |
Names of columns to be corruped with replacement corruption |
er |
Vector of error rates for each function, or single value to be applied by all functions. Default is .1. |
v |
Verbose tag. Default is false |
Corrupted data frame
1 2 3 4 | data_size = 500
rec <- generate_data(data_size)
error <- .6
corrupt_rec <- corrupt_data(rec, numeric_cor = c("zipcode","birthyear"),string_cor = c("names"),replace_cor = c("town"),er = error, v = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.