Add a hypothesis to a study object
add_hypothesis(study, id = NULL, description = "Describe your hypothesis", ...)
study | A study list object with class scivrs_study |
---|---|
id | The id for this hypothesis (index or character) if a hypothesis with this id already exists, it will overwrite it |
description | The text description of the hypothesis |
... | further arguments to add |
A study object with class scivrs_study
s <- study() %>% add_hypothesis("H1", "Petal width and length will be positively correlated.") study_to_json(s)#> { #> "name": "Demo Study", #> "info": [], #> "authors": [], #> "hypotheses": [ #> { #> "id": "H1", #> "description": "Petal width and length will be positively correlated.", #> "criteria": [], #> "corroboration": [], #> "falsification": [] #> } #> ], #> "methods": [], #> "data": [], #> "analyses": [] #> } #>