Skip to content

Commit

Permalink
docs: remove old example
Browse files Browse the repository at this point in the history
  • Loading branch information
aravindhebbali committed Jun 27, 2023
1 parent 1a14f20 commit 1a50b15
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 32 deletions.
16 changes: 0 additions & 16 deletions vignettes/rfm-customer-level-data.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -214,22 +214,6 @@ segments %>%
)
```

## Segment Size

Now that we have defined and segmented our customers, let us examine the distribution of customers across the segments. Ideally, we should have very few or no customer in segments such as `At Risk` or `Needs Attention`.

```{r rfm_customers, echo=FALSE}
result <-
segments %>%
data.table() %>%
.[, .(Count = .N), by = segment] %>%
.[order(-Count)] %>%
setnames(old = "segment", new = "Segment") %>%
setDF()
result
```

We can also examine the median recency, frequency and monetary value across segments to ensure that the
logic used for customer classification is sound and practical.

Expand Down
16 changes: 0 additions & 16 deletions vignettes/rfm-transaction-level-data.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -211,22 +211,6 @@ segments %>%
)
```

## Segment Size

Now that we have defined and segmented our customers, let us examine the distribution of customers across the segments. Ideally, we should have very few or no customer in segments such as `At Risk` or `Needs Attention`.

```{r rfm_customers, echo=FALSE}
result <-
segments %>%
data.table() %>%
.[, .(Count = .N), by = segment] %>%
.[order(-Count)] %>%
setnames(old = "segment", new = "Segment") %>%
setDF()
result
```

## Scatter Plots

The best customers are those who:
Expand Down

0 comments on commit 1a50b15

Please sign in to comment.