Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create an R script: Create a new script by going to File > New File > R Script. This will give you a blank page

Create an R script:
Create a new script by going to File > New File >R Script. This will give you a blank page in the editor window. Before you start writing your script you should save it by going to File > Save or click on the disk icon: 1 Give your script a name like "Lab1" and save it in the same directory that contains your lab project file. If you followed the instructions above, this directory will be called Math2240L. Don't forget to save your script again when you are finished writing it!
Assignment Questions:
In the new script that you created above write one line of code for each of the following steps:
a. Multiply -25 by 6; assign this value to an object called result 1
b. Find the absolute value of result1; assign this value to an object called result2
c. Divide result 2 by ; assign this value to an object called result 3
d. Find the square root of result3
Copy and paste your script into your solutions document. Or take a screenshot and paste it into your document.
In your script, write a single line of code that does all of the calculations in Question 1 without creating or using the objects result1, result2, or result3. Run your code and then copy and paste this new line of code and the resulting output into your solutions document.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Database Programming

Authors: Chris Fehily

1st Edition

1937842312, 978-1937842314

More Books

Students also viewed these Databases questions

Question

Describe ERP and how it can create efficiency within a business

Answered: 1 week ago

Question

3. Identify the methods used within each of the three approaches.

Answered: 1 week ago