reGenCountshiny {SRTsim}R Documentation

ReSimulate Count Data with Parameters Specification from Shiny

Description

ReSimulate Count Data with Parameters Specification from Shiny

Usage

reGenCountshiny(shinyOutput, NewSeed = NULL)

Arguments

shinyOutput

A list of Shiny Output. Including a simCount, simInfo,simcountParam,simLocParam

NewSeed

A new seed for data generation. Useful when multiple replicates are needed.

Value

Returns a Count DataFrame

Examples


## Re-generate Count Data based on ShinyOutput Parameters, should be same as simCount in ShinyOutput
cMat <- reGenCountshiny(toyShiny)

## Generate Count Data with A New Seed based on ShinyOutput Parameters 
cMat2 <- reGenCountshiny(toyShiny,NewSeed=2)

## Comparison across the output
toyShiny$simCount[1:3,1:3]
cMat[1:3,1:3]
cMat2[1:3,1:3]


[Package SRTsim version 0.99.6 Index]