Description Usage Arguments Details Examples
Adjust the column names of a data.table of claimvaluations so that the resulting column names match the required names for claimz functions.
1 | clean_claimvaluations(claimvaluations, colmap = NULL)
|
claimvaluations |
data.table object |
colmap |
a mapping of column names in the form of a named character vector, or NULL |
Returns a data.table object, a copy of claimvaluations with required column names.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | library(data.table)
# Sample claim valuations
claimvaluationz
claimvaluations <- copy(claimvaluationz)
setnames(claimvaluations, c("ClaimID"), c("claim_id"))
colmap <- c(
"ClaimID"="claim_id",
"PolicyID"="PolicyID",
"EffectiveDate"="EffectiveDate",
"ExpirationDate"="ExpirationDate",
"DateOfLoss"="DateOfLoss",
"ReportDate"="ReportDate"
)
clean_claimvaluations(claimvaluations, colmap)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.