diff --git a/DESCRIPTION b/DESCRIPTION index a5e6300..58c8e0b 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -2,10 +2,10 @@ Package: my.package Title: This is my first R package Version: 0.0.0.9000 Authors@R: - person(given = "Evan", - family = "Johnson", + person(given = "Yujin", + family = "Kim", role = c("aut", "cre"), - email = "wevanjohnson@gmail.com", + email = "yujinkim22@gmail.com", comment = c(ORCID = "YOUR-ORCID-ID")) Description: This is my new package to do addition, subtraction, and multiplication License: Artistic 2.0 diff --git a/R/multiply.R b/R/multiply.R new file mode 100644 index 0000000..591353d --- /dev/null +++ b/R/multiply.R @@ -0,0 +1,13 @@ +#' Multiply Two Numbers +#' +#' This function multiplies two numeric inputs. +#' +#' @param x A numeric value. +#' @param y A numeric value. +#' @return The product of \code{x} and \code{y}. +#' @export +#' @examples +#' multiply(2, 3) # returns 6 +multiply <- function(x, y) { + return(x * y) +}