# Example 1: Extract features from a vector of sample descriptions.
descs <- c("KappaCredit#101",
"Transferred funds for service fee 990",
"Mighty remittance code 99816 casino")
extract_basic_description_features(descs)
# Example 2: Aggregate the maximum word length per application.
# Load the sample transactions data.
data(featForge_transactions)
# Combine the transactions data with extracted basic description features.
trans <- cbind(featForge_transactions,
extract_basic_description_features(featForge_transactions$description))
# Aggregate the maximum word length on the application level.
aggregated <- aggregate_applications(
trans,
id_col = "application_id",
amount_col = "max_word_length",
ops = list(max_description_word_length = max),
period = "all"
)
# Display the aggregated results.
aggregated
Run the code above in your browser using DataLab