knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The repository contains functions to run conversions and calculate components from commonly used questionnaires in LCBC research.
All functions in this package are prefixed with the name of the questionnaire the function is intended for (i.e. psqi_
, ipaq_
etc.).
Column specifications may be manually input'ed, but if columns are named after as the function expects (i.e. MOAS standard), the functions generally work without manual input.
The functions that will run all (most) necessary steps to completely calculate components and sums are named as questionnaire_compute
(i.e. psqi_compute()
, ipaq_compute
, etc.).
These functions all have the option to keep_all
which takes a TRUE
or FALSE
statement on whether the data should be appended to the input data, or just to return the computed columns.
Full documentation with tutorials and function docs online at https://lcbc-uio.github.io/questionnaires/
Install the package from the LCBC R-universe:
# Enable universe(s) by lcbc-uio options(repos = c( lcbcuio = 'https://lcbc-uio.r-universe.dev', CRAN = 'https://cloud.r-project.org')) # Install some packages install.packages('lcbcr')
OR using the the package remotes
to install.
# install.packages("remotes") remotes::install_github("lcbc-uio/questionnaires")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.