Question: NOTE: THIS IS R PROGRAMMING: Discuss how to solve the following problems use R code. Youre not just writing the R code, you are also

NOTE: THIS IS R PROGRAMMING: Discuss how to solve the following problems use R code. Youre not just writing the R code, you are also discussing the process.

Considering the following data frame called items (note the row names and column names):

store id

item name

price

entry 1

1

milk

$1.99

entry 2

2

egg

$0.99

entry 3

3

fish

$1.99

entry 4

4

pork

$3.99

entry 5

5

beef

$4.99

Write R code(s) to:

retrieve all the information for entry2;

Retrieve all the item names;

Use two ways to retrieve beef;

Retrieve the item name and price columns for store id greater than 3.

The resulting data frame for (d) should look like below.

item name

price

entry 4

pork

$3.99

entry 5

beef

$4.99

Considering this function header: myFun=function(first=10,second=20,third=30,fourth=40), List the values of first, second, third, and fourth when we call myFun in the following ways.

myFun()

myFun(second=60,70)

myFun(fourth=10,first=20,50,80)

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 Databases Questions!