calculate_coalesce_origin | R Documentation |
calculate_coalesce_origin
will determine the column from which a value was filled during a coalesce procedure. Ensure
that all blanks or other undesired patterns are converted to NA
before starting. Provide columns in order coalesce is expected to occur.
calculate_coalesce_origin(data, cols)
data |
Originating dataset that coalesce procedure occurred on. |
cols |
Character vector of column names, in order coalesce would occur. |
Character vector with names of originating columns.
testdata <- data.frame(col1 = c(1,2,3), col2 = c(NA, NA, 3), col3 = c(1, NA, 4))
calculate_coalesce_origin(testdata, c('col2', 'col3'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.