Update a method

update_method(study, id = 1, description = NULL, new_id = NULL)

Arguments

study

A study list object with class scivrs_study

id

The id for this method (index or character)

description

The text description of the method

new_id

A new (character) ID for this method

Value

A study object with class scivrs_study

Examples

s <- study() %>% add_method("M1", "My method")
s <- update_method(s, 1, "Better description", "M1a")
s
#> Demo Study
#> ----------
#> 
#> * Hypotheses: None
#> * Data: None
#> * Analyses: None
#>