Skip to content

Latest commit

 

History

History
69 lines (54 loc) · 2.12 KB

README.md

File metadata and controls

69 lines (54 loc) · 2.12 KB

edeaR

CRAN_Status_Badge GitHub version R-CMD-check Codecov test coverage Lifecycle: stable

This package provides several useful techniques for Exploratory and Descriptive Analysis of event based data in R.

For more information, check the manual on GitHub or the bupaR Documentation website.

Installation

You can install edeaR from CRAN with:

install.packages("edeaR")

Development Version

You can install the development version of edeaR from GitHub with:

# install.packages("devtools")
devtools::install_github("bupaverse/edeaR")

Example

library(edeaR)
#> 
#> Attaching package: 'edeaR'
#> The following object is masked from 'package:base':
#> 
#>     setdiff
library(eventdataR)
#> Warning: package 'eventdataR' was built under R version 4.2.3

# Calculate idle times per resource:
patients %>%
  idle_time(level = "resource", units = "days")
#> # A tibble: 7 × 2
#>   employee idle_time    
#>   <fct>    <drtn>       
#> 1 r7       464.4199 days
#> 2 r1       450.2124 days
#> 3 r4       442.6260 days
#> 4 r5       430.1764 days
#> 5 r3       429.1064 days
#> 6 r6       425.5362 days
#> 7 r2       214.7436 days