set.arg {metaseqR} | R Documentation

## Argument setter

### Description

Set argument(s) to a list of arguments, e.g. normalization arguments.

### Usage

        set.arg(arg.list, arg.name, arg.value = NULL)

### Arguments

`arg.list` | the initial list of a method's (e.g. normalization) arguments. Can be created with the `get.defaults` function.
`arg.name` | a named list with names the new arguments to be set, and mebers the values to be set or a vector of argument names. In this case, `arg.value` must be supplied.
`arg.value` | when `arg.name` is a vector of argument names, the values corresponding to these arguments.

### Value

the `arg.list` with the changed `arg.value` for `arg.name`.

### Author(s)

Panagiotis Moulos

### Examples

    norm.list <- get.defaults("normalization","egder")
    set.arg(norm.list,list(main.method="glm",logratioTrim=0.4))

[Package metaseqR version 1.24.0 Index]