set.arg: Argument setter

Description Usage Arguments Value Author(s) Examples

View source: R/metaseqr.util.R

Description

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

Usage

1
    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

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

pmoulos/metaseqr documentation built on Dec. 29, 2020, 5:56 a.m.