setParams | R Documentation |
Set multiple parameters in a Params object.
setParams(object, update = NULL, ...)
## S4 method for signature 'KersplatParams'
setParams(object, update = NULL, ...)
## S4 method for signature 'Params'
setParams(object, update = NULL, ...)
## S4 method for signature 'SplatParams'
setParams(object, update = NULL, ...)
object |
Params object to set parameters in. |
update |
list of parameters to set where |
... |
additional parameters to set. These are combined with any
parameters specified in |
Each parameter is set by a call to setParam
. If the same
parameter is specified multiple times it will be set multiple times.
Parameters can be specified using a list via update
(useful when
collecting parameter values in some way) or individually (useful when setting
them manually), see examples.
Params object with updated values.
params <- newSimpleParams()
params
# Set individually
params <- setParams(params, nGenes = 1000, nCells = 50)
params
# Set via update list
params <- setParams(params, list(mean.rate = 0.2, mean.shape = 0.8))
params
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.