View source: R/reGenCountshiny.R
reGenCountshiny | R Documentation |
ReSimulate Count Data with Parameters Specification from Shiny
reGenCountshiny(shinyOutput, NewSeed = NULL)
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. |
Returns a Count DataFrame
## 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]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.