Description Usage Arguments Details Value Examples
View source: R/sqp_construct.R
sqp_construct
is designed to create SQP tibbles
by manually inserting new metrics such as quality or validity.
1 2 3 | sqp_construct(question_name, metrics, all_columns = FALSE)
sqp_construct_(question_name, metrics, all_columns = FALSE)
|
question_name |
a character string that will be used as the question name |
metrics |
a list containing new SQP metrics. Currently it only supports quality, reliability and validity. Can also specify one of the metrics and the remaining are set to NA by default |
all_columns |
if |
sqp_construct_
is useful if you're interested in programming
with sqpr
rather than using it interactively. If you want to use
sqp_construct
inside a function, use the equivalent sqp_construct_
which uses standard evaluation.
a tibble
of one row with the supplied metrics. It also has
class sqp
for further manipulations within the sqpr
package.
1 2 3 4 5 6 7 8 9 10 11 12 | sqp_construct(new_question, list(quality = 0.3))
sqp_construct(new_question, list(quality = 0.3, validity = 0.2))
## Note that specifying a column which is not availabe in SQP 3.0 data
## will throw an error
## Not run:
sqp_construct(new_question, list(random_col = 0.3, validity = 0.2))
# Error: One or more of the specified metrics don't match the SQP column names
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.