Getting Started with the PicnicHealth R Package
PicnicHealth.RmdPicnicHealth Package
This PicnicHealth package is has a small set of
functions, to help you start looking through the data.
Installation
In order to install the Picnichealth Package you will
need the latest version of R (v4+).
To get access to the PicnicHealth package, contact your Picnic
representative, and we’ll send you a compressed file with the package.
Installing it from that file also needs its dependencies
(ggplot2, dplyr, and others) from CRAN, so we
recommend installing it with remotes, which pulls those for
you.
From R
options(repos = c(CRAN = "https://cran.r-project.org"))
install.packages("remotes")
remotes::install_local("PicnicHealth_<version>.zip", dependencies = NA)Using the package
Loading Package
You can load the PicnicHealth package similarly to other
packages you typically use.
library(PicnicHealth)Loading the PicnicHealth Dataset
Start off by loading the data set into a single object
data_set <- load_data_set('path/to/data')Once you have the dataset object, you may want to load each data table into your global environment.
list2env(data_set, env = .GlobalEnv)