Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

use R programming to solve Problem 2. The following table presents the information about customers of a company. Table 3: Customer Information 1. [0.5 point]

use R programming to solve

image text in transcribed

Problem 2. The following table presents the information about customers of a company. Table 3: Customer Information 1. [0.5 point] Store the customer ID column in a vector named cus ID. 2. [1 point] Define a vector named cus age to store the customers' age. We are informed that the age of the customer 333 is inaccurate in table 3. The right age is 45 . After creating the cus age vector, please use R commands to update the vector. 3. [1 point] Store the data on customer annual income in a vector named cus income. 4. [1 point] Find the variance and 70th percentile of the customers' annual incomes, ignoring the missing value. Store these values in variables var income and percentile70_income. 5. [1 point] Use relational operations to obtain a logical vector that shows TRUE if a customer's annual income is above the percentile70_income. Name the vector high income. 6. [1.5 point] Create a data frame that contains the cus ID, cus age, and high income columns. Name your data frame cus information

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

SQL Antipatterns Avoiding The Pitfalls Of Database Programming

Authors: Bill Karwin

1st Edition

1680508989, 978-1680508987

More Books

Students also viewed these Databases questions