knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

healthyR.data

CRAN_Status_Badge Lifecycle: stable PRs Welcome

The goal of the { healthyR.data } package is to provide a simple yet feature rich administrative data-set allowing for the testing of functions inside of the { healthyR } package. It can be used to test its functions or any function you create.

Installation

You can install the released version of healthyR.data from CRAN with:

install.packages("healthyR.data")

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("spsanderson/healthyR.data")

Example

This is a basic example which shows you how to solve a common problem:

library(healthyR.data)
library(dplyr)

df <- healthyR_data

glimpse(df)

df %>% 
    count(ip_op_flag, service_line) %>%
    arrange(ip_op_flag, desc(n)) %>%
    rename(count = n)


spsanderson/healthyR.data documentation built on Jan. 19, 2025, 2:11 a.m.