Identifies 'missingness' in a data frame by examining the value of the test_col. If a given row's (test_col <= 0) & (test_col != NaN) the row values are changed to NA.
1 2 | transform_missing(x, test_col = "Count", replace = NA,
keep_col = c("Label", "Blob", "Count", "UserLabel"))
|
x |
a data.frame |
test_col |
the name of the column to test (!=0 and !=NaN) |
replace |
the value to use for the replacement |
keep_col |
the names of the columns to *not* change |
the |
transformed data frame |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.