Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use R or R studio: Create a new variable, generation_group , that represents the generation of the LJ customers and add it to the

Please use R or R studio:

Create a new variable, generation_group, that represents the generation of the LJ customers and add it to the LJ.trans dataset. More specifically, generation_group variable takes a value Post-Millennials for ages between 1 and 21 (including 1 and 21), Millennials for ages between 22 and 37 (including 22 and 37), Generation X for ages between 38 and 53 (including 38 and 53), and Baby Boomers for ages between 54 and 72 (including 54 and 72). Please use for() and if else() functions or ifelse() function to create the generation_group variable.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Programming The Perl DBI Database Programming With Perl

Authors: Tim Bunce, Alligator Descartes

1st Edition

1565926994, 978-1565926998

More Books

Students also viewed these Databases questions

Question

In an Excel Pivot Table, how is a Fact/Measure Column repeated?

Answered: 1 week ago