100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
BUSI 1302 INTRODUCTION TO BUSINESS (MGMT 105) HOMEWORK 2 TEXAS A& M UNIVERSITY $15.49   Add to cart

Exam (elaborations)

BUSI 1302 INTRODUCTION TO BUSINESS (MGMT 105) HOMEWORK 2 TEXAS A& M UNIVERSITY

 3 views  0 purchase
  • Course
  • BUSI 1301
  • Institution
  • BUSI 1301

BUSI 1302 INTRODUCTION TO BUSINESS (MGMT 105) HOMEWORK 2 TEXAS A& M UNIVERSITY

Preview 2 out of 9  pages

  • November 14, 2024
  • 9
  • 2024/2025
  • Exam (elaborations)
  • Unknown
  • BUSI 1301
  • BUSI 1301
avatar-seller
saraciousstuvia
BUSI 1302 INTRODUCTION TO
BUSINESS (MGMT 105)
HOMEWORK 1 TEXAS A& M
UNIVERSITY

, 1. Use R commands to accomplish the following
a. Load the data file "sales.RData" (note that this is already in R's format so you can use
the function load rather than read.csv).
Ans. > load("C:/Users/meatr/Desktop/SJSU/2 sem/235-A/Week-2/sales.RData")

b. Provide a summary of each column in the sales data frame.

Ans. > summary(sales)
Year Store Product Sales
Min. :2010 Min. :1 Min. :1.0 Min. : 0
1st Qu.:2012 1st Qu.:2 1st Qu.:2.0 1st Qu.:1594
Median :2014 Median :3 Median :3.5 Median :2184
Mean :2014 Mean :3 Mean :3.5 Mean :2248
3rd Qu.:2017 3rd Qu.:4 3rd Qu.:5.0 3rd Qu.:2909
Max. :2019 Max. :5 Max. :6.0 Max. :4960
c. Describe how the data is organized (i.e. what is contained in each row or what is the unit
of observation).
Ans. > class(sales)
[1] "data.frame"
> sapply(sales, class)
Year Store Product Sales
"integer" "integer" "integer" "numeric"
d. What were the total sales in 2017?
Ans. > sum(sales$Sales[sales$Year == 2017])
[1] 63683.86
e. Show the total sales in each year.
Ans. > aggregate(Sales~Year, sales, sum)
Year Sales
1 2010 72757.96
2 2011 66443.94
3 2012 63928.96
4 2013 70598.57
5 2014 67806.71
6 2015 63367.40
7 2016 70749.49
8 2017 63683.86
9 2018 64919.11
10 2019 70270.46

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller saraciousstuvia. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $15.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

75632 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$15.49
  • (0)
  Add to cart