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

circle_circumference <- function(radius) {
2 * pi * radius
}

1. calculate diameter

circle_diameter <- function(radius) {
2 * radius
}

Comments