Question: As an answere I would expect the code in R - and it should work in R Studio when I put it in. Use Base

As an answere I would expect the code in R - and it should work in R Studio when I put it in.

Use Base R a.

Define two vectors with the following data: vector "t" includes character values "mon", "tue", "wed", "thu", "fri", "sat", "sun". Vector "m" includes numeric values [90; 80; 50; 20; 5; 20; 95].

B. Concatenate both vectors into a data frame and allow R to transform the string values into factor values. Save this new data object named "shop".

Rename then the columns "day" and "orders".

As part of the data frame "shop", create a new variable called "revenues" by multiplying the variable "orders" with the value 20.

Calculate the mean of "revenues" and multiply by 365.

Write a function that takes 3 arguments a, b, and c as inputs and then returns the smallest number of the three and multiplies it by 100. Apply your function on following values: a = 4, b = 10, c = 2.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!