Learn R Programming

LendingClub (version 2.0.0)

summary.holdings: Prepare a dashboard of key metrics

Description

Creating a summary of matrics an investor would find useful in evaluating their account.

Usage

# S3 method for holdings
summary(object, ...)

Arguments

object

data.frame of loans from DetailedNotesOwned()

...

currently not used

Details

At Risk Ratio calculates the percentage of the loans with principal 16 or more days late.

Examples

Run this code
# NOT RUN {
summary( lc_DetailedNotesOwned( LC_CRED ))

# split notes on a variable and  run summary for each subset
holdings<- lc_DetailedNotesOwned(LC_CRED)$content
x<- lapply(split(holdings, f= holdings$portfolioName), summary)
y<- Reduce(function(...) merge(..., by= 'col_labs',  all.x= TRUE), x)
names(y)[-1]<- names(x)
y
# }

Run the code above in your browser using DataLab