><span><span class="co"># using customer data</span></span></span>
<span class="r-in"><span><span class="va">analysis_date</span> <span class="op">&lt;-</span> <span class="fu"><a href="https://rdrr.io/r/base/as.Date.html" class="external-link">as.Date</a></span><span class="op">(</span><span class="st">'2007-01-01'</span><span class="op">)</span></span></span>
<span class="r-in"><span><span class="va">rfm_customer</span> <span class="op">&lt;-</span> <span class="fu"><a href="rfm_table_customer.html">rfm_t