Question: Create a file (on your computer desktop or elsewhere) that contains the following data values: 1, 2, 18. The data values should be separated by

Create a file (on your computer desktop or elsewhere) that contains the following data values:

1, 2, 18.

The data values should be separated by spaces. Then enter R and read the data values into a vector named x with the scan function. Print the average of the three values.

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