Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Find the list of S&P 500 companies. Choose four companies from S&P 500 list that the first letter of their names is the same as

Find the list of S&P 500 companies. Choose four companies from S&P 500 list that the first letter of their names is the same as the first four letters of your first name.

For instance, my first name is ARASH. So, I need to choose four companies that their names start with A, R, A, and S. I choose: A: Amazon R: Royal Caribbean Group A: Apple S: Starbucks

You must choose four companies based on your first name. and my name first 4 letters are A , B, R, A Now do the following:

1)

Create a dataframe in R that has the following columns for these four companies: Company_name Headquarters location city Headquarters location country (use US for the United States) Symbol Revenue in billion dollars Stock price

Use appropriate names for your columns. Make sure that the classes of your column make sense. The class of Headquarters location country must be factor.

2) a) Find the maximum value for revenue (use $ operator).

b) Find the average for stock price (use $ operator).

c) Create a new variable in your dataframe that is stock price times 2 (use $ operator).

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

Modern Database Management

Authors: Donald A. Carpenter Fred R. McFadden

1st Edition

8178088045, 978-8178088044

More Books

Students also viewed these Databases questions