Description Usage Arguments Value
View source: R/fill_in_zeros.R
When making features based on claims data, it is often the case that some people in your sample will not have any claims. fill_in_zeros() adds these individuals to the data.frame generated from the claims data and fills in a value of 0 for these people with no claims.
1 | fill_in_zeros(DT, DT_id, id_name)
|
DT |
a data.table generated from claims data |
DT_id |
a data.table with all IDs in analytic sample |
id_name |
name of id column(s) that are in both DT and DT_id |
data.frame with added rows and 0s
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.