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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started