Final project
Github: Ejeat12/R-package (github.com)
For the final project, IVE created a package titled circle that contains three functions and does not require any dependencies. All three functions each take a given radius as a function and individually calculate the diameter, circumference, and area parameters. Below are the code snippets of how you would use the function.
1. calculate area
circle_area <- function(radius) { | |
pi * radius^2 | |
} |
2. calculate area
|
1. calculate diameter
|
Comments
Post a Comment