Skip to content

Commit

Permalink
fixed bug with multiple IndicatorIDs and ProfileIDs in fingertips_dat…
Browse files Browse the repository at this point in the history
…a() - closes issue #63
  • Loading branch information
Sebastian Fox committed Feb 13, 2019
1 parent 1b9877f commit 71bb9bd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
@@ -1,6 +1,8 @@
# fingertipsR 0.2.0.9000

* `deprivation_decile()` for `AreaTypeID = 7` (General Practice) now only contains 2015 deprivation deciles. 2010 to 2012 have been removed

* bug fix around entering vectors of `IndicatorID`s and `ProfileID`s into `fingertips_data()` function

# fingertipsR 0.2.0 (12/11/2018)

Expand Down
18 changes: 12 additions & 6 deletions R/retrieve_data.R
Expand Up @@ -10,12 +10,18 @@ retrieve_indicator <- function(IndicatorIDs, ProfileIDs, ChildAreaTypeIDs, Paren
} else {
profileID_bit <- "&profile_id=%s"
}
fd <- expand.grid(IndicatorIDs = IndicatorIDs,
ProfileIDs = ProfileIDs,
ChildAreaTypeIDs = ChildAreaTypeIDs,
ParentAreaTypeIDs = ParentAreaTypeIDs,
path = path,
profileID_bit = profileID_bit) %>%
# fd <- expand.grid(IndicatorIDs = IndicatorIDs,
# ProfileIDs = ProfileIDs,
# ChildAreaTypeIDs = ChildAreaTypeIDs,
# ParentAreaTypeIDs = ParentAreaTypeIDs,
# path = path,
# profileID_bit = profileID_bit) %>%
fd <- data.frame(IndicatorIDs = IndicatorIDs,
ProfileIDs = ProfileIDs,
ChildAreaTypeIDs = ChildAreaTypeIDs,
ParentAreaTypeIDs = ParentAreaTypeIDs,
path = path,
profileID_bit = profileID_bit) %>%
unique()

set_config(config(ssl_verifypeer = 0L))
Expand Down

0 comments on commit 71bb9bd

Please sign in to comment.