Update a hypothesis

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

Arguments

study

A study list object with class scivrs_study

id

The id for this hypothesis (index or character)

description

The text description of the hypothesis

new_id

A new (character) ID for this hypothesis

Value

A study object with class scivrs_study

Examples

s <- study() %>% add_hypothesis("H1", "My hypothesis")
s <- update_hypothesis(s, 1, "Better description", "H1a")
s
#> Demo Study
#> ----------
#> 
#> * Hypotheses: H1a
#> * Data: None
#> * Analyses: None
#> 
#> Hypothesis H1a: Better description
#> 
#> Conclusion: You may need to run `study_analyse()`
#> * Corroborate (*no criteria*): 
#> * Falsify (*no criteria*):