Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create DT::datatable of all current indicators in Fingertips by profile and area #34

Open
julianflowers opened this issue Sep 12, 2017 · 2 comments

Comments

@julianflowers
Copy link

A function to create a data table of live indicators - which profile and what geography

`
indicator_List<- function(){
require(tidyverse)

fingertipsR::areatypes_by_indicators %>%
left_join(area_types()) %>%
group_by(IndicatorID) %>%
select(IndicatorID, AreaTypeName) %>%
arrange(IndicatorID) %>%
left_join(indicators()) %>%
select(IndicatorID, IndicatorName, ProfileName, AreaTypeName) %>%
distinct() %>%
DT::datatable(filter = "top", extensions = 'Buttons', options = list(
dom = 'Bfrtip',
buttons = c('copy', 'csv', 'excel', 'pdf', 'print')
)
)
}
`

@sebastian-fox
Copy link
Member

Thanks for the suggestion. What do you think is the purpose of this function (eg, how do you think the output should be presented?):

  • A data.frame object?
  • a Shiny gadget (like select_indicators())? So people can point and click to retrieve what they need
  • other?

My thought is it should be a data.frame (which would mean we miss off the last few lines of your code).
Agree?

@julianflowers
Copy link
Author

Yes I think you are right a data frame - i think we need something which shows which geography is availalbe for which indicator
I kind of like the fact that you can download data from dt::datatable though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants