basic_stats: Basic Univariate Statistics of Data

Description Usage Arguments Value Examples

View source: R/Base_Functions.R

Description

Generate basic statistics for numerical data, as well as random values to be used in the agent-based simulation

Usage

1
basic_stats(data_in, key, samplesize, width, histo = TRUE, plot = FALSE)

Arguments

data_in

Table of data to be analyzed

key

Name of the variable to be analzyed

samplesize

Number of random values from the data to be taken

histo

TRUE if you want to plot a histogram, FALSE if you want to plot a bar graph

plot

Decides whether data will be plotted or not

Value

A vector of random values taken from the data

Examples

1
random_values <- basic_stats(data_in, key, samplesize, width, histo = TRUE, plot = FALSE)

PippintheFoolhardy/SimFunctions documentation built on Dec. 18, 2021, 7:43 a.m.