R/rnorm_sim.R

Defines functions norm_sim

Documented in norm_sim

#' Permutations for simulated data from a normal distribution
#'
#' @param set_n Sets the size of the simulated data.
#' @param set_mean Sets the mean of the normal distribution from which the simulated data is drawn.
#' @param set_sd Sets the standard deviation of the normal distribution from which the simulated
#'     data is drawn.
#' @param decimals Selects the decimals place which will be shuffled. For example, if you set
#'     'decimals = 1', then after the data is drawn from a normal distribution, it will be
#'     truncated to the first decimal place and in the resulting simulations the numbers in the first
#'     decimal place will be shuffled.
#' @param reps The number of shuffles (permutations) to perform for each set of data.
#' @param times The number of simulations to perform.
#'
#' @return A tibble
#' @export
#'
#' @examples
#'
#' @useDynLib fabricated
#' @importFrom Rcpp sourceCpp
#'

norm_sim <- function(set_n, set_mean, set_sd, decimals, reps, times) {

  rnorm_sim(set_n, set_mean, set_sd, decimals, reps, times)

  }
josh-mc/fabricated documentation built on April 25, 2022, 1:31 p.m.