Question: Create a new R script and save your R script with a suitable name. Use R as a fancy calculator. For the number 12.43, find
- Create a new R script and save your R script with a suitable name.
- Use R as a fancy calculator. For the number 12.43, find the natural log, log to the base 10, log to the base 2, square root, and the natural antilog (exponential). Don't forget to write your code in RStudio's script editor and run the code into the console.
- Use R to determine the area of a circle with a diameter of 20 cm and assign the result to an object calledarea_circle. [Google is your friend if you can't remember the formula to calculate the area of a circle. Also, remember that R already knows aboutpi.]
- Calculate the cube root of the result of 14 x 0.51. You should think creatively for a solution (hint: think exponents) and remember that R follows the usual order of mathematical operators, so you need to use parentheses in your code.
- Perform a calculation of your choice using at least two objects.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
