diff --git a/DESCRIPTION b/DESCRIPTION index a5e6300..2ff56a8 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -2,13 +2,13 @@ Package: my.package Title: This is my first R package Version: 0.0.0.9000 Authors@R: - person(given = "Evan", - family = "Johnson", + person(given = "Paige", + family = "Hart-Johnson", role = c("aut", "cre"), - email = "wevanjohnson@gmail.com", + email = "paigehart11@gmail.com", comment = c(ORCID = "YOUR-ORCID-ID")) Description: This is my new package to do addition, subtraction, and multiplication License: Artistic 2.0 Encoding: UTF-8 LazyData: true -RoxygenNote: 7.0.0 +RoxygenNote: 7.3.3 diff --git a/NAMESPACE b/NAMESPACE index dca7ea5..a80937f 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -1,4 +1,5 @@ # Generated by roxygen2: do not edit by hand export(add) +export(multiply) export(subtract) diff --git a/R/multiply.R b/R/multiply.R new file mode 100644 index 0000000..e538c5b --- /dev/null +++ b/R/multiply.R @@ -0,0 +1,12 @@ +#' Multiply two numbers +#' +#' This function multiplies two numeric values. +#' +#' @param x A numeric value +#' @param y A numeric value +#' +#' @return The product of x and y +#' @export +multiply <- function(x, y) { + x * y +} diff --git a/man/multiply.Rd b/man/multiply.Rd new file mode 100644 index 0000000..5d50eeb --- /dev/null +++ b/man/multiply.Rd @@ -0,0 +1,19 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/multiply.R +\name{multiply} +\alias{multiply} +\title{Multiply two numbers} +\usage{ +multiply(x, y) +} +\arguments{ +\item{x}{A numeric value} + +\item{y}{A numeric value} +} +\value{ +The product of x and y +} +\description{ +This function multiplies two numeric values. +}