Skip to content

Commit

Permalink
Merge pull request #27 from PublicHealthEngland/Dev_SF
Browse files Browse the repository at this point in the history
Minor minor changes
  • Loading branch information
PHEgeorginaanderson committed Jul 26, 2019
2 parents ca92cb3 + a4ed61c commit 39d52c1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: PHEindicatormethods
Type: Package
Version: 1.1.3
Version: 1.1.3.9000
Title: Common Public Health Statistics and their Confidence Intervals
Description: Functions to calculate commonly used public health statistics and
their confidence intervals using methods approved for use in the production
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## PHEindicatormethods v1.1.3.9000



## PHEindicatormethods v1.1.3

Minor amendments to package testing scripts to work on platforms using clang as compiler.
Expand Down
3 changes: 0 additions & 3 deletions R/LifeExpectancy.R
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,6 @@ phe_life_expectancy <- function(data, deaths, population, startage,
stop("function life_expectancy requires at least 4 arguments: data, deaths, population, startage")
}

# check for 20 age bands
#if (length(age_contents) != 20) stop("this function requires 20 age bands to work (0, 1-4, 5-9, 10-14, ..., 85-89, 90+)")

# check that min age is 0
stripped_age_contents <- as.integer(sub("\\D*(\\d+).*", "\\1", age_contents))
if (stripped_age_contents[1] != 0) stop("first age band in age_contents must be 0")
Expand Down
2 changes: 1 addition & 1 deletion vignettes/Introduction_to_PHEindicatormethods.Rmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Introduction_to_PHEindicatormethods"
title: "Introduction to PHEindicatormethods"
author: "Georgina Anderson"
date: "`r Sys.Date()`"
output:
Expand Down

0 comments on commit 39d52c1

Please sign in to comment.