R/hello.R

Defines functions hello mym

Documented in hello mym

#' First Ever Function
#'
#' @param x Name
#'
#' @return Output from print
#' @export
#'
#' @examples
#' hello("Ben")
hello <- function(x) {
  print(paste0("Hello ", x, ", this is the world!"))
}


#' Creat A Squared Matrix
#'
#' @param n A scalar number
#'
#' @return A squared matrix
#' @export
#'
#' @importFrom stats rnorm
#' @importFrom sde BM
#'
#' @examples
#' mym(4)
mym <- function(n){
  return(sum(c(rnorm(n)))*BM(x=0, t0=0, T=1, N=1))
}
yzhao7322/newstart documentation built on Nov. 15, 2019, 12:10 a.m.