knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
demspaces contains helper functions for the Democratic Spaces Barometer project; see andybega/democratic-spaces.
(Note to self: the private dev repo is at andybega/closing-spaces)
Since this package is specific to the democratic spaces project, it will not end up on CRAN. Install from GitHub instead, with:
# install.packages("remotes") remotes::install_github("andybega/demspaces")
library("demspaces") data("states") mdl <- ds_logistic_reg("v2x_veracc_osp", states) preds <- predict(mdl, new_data = states) head(preds)
There is a Makefile to help with stuff. E.g. to open that static docs:
make opendocs
To add new models, see the add_new_model.R
script. It will use a template to setup the R and test files.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.