-
Notifications
You must be signed in to change notification settings - Fork 18
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
Get some simple stats on Fingertips #37
Labels
Comments
Could I do this via a pull request? |
Yes, can do. I'd prefer to use Otherwise, I can do this for you later today or tomorrow. Let me know if you'd like to do a pull request as practise? |
Agreed
Never done a pull request so yes be good practice - can you guide me through it
…Sent from my iPhone
On 8 Jan 2018, at 10:43, sebastian-fox ***@***.***> wrote:
Yes, can do. I'd prefer to use paste instead of glue as this reduces dependencies on other packages (see comment on predict_indicator() re: rOpenSci.
Otherwise, I can do this for you later today or tomorrow. Let me know if you'd like to do a pull request as practise?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
done (as I want to submit to CRAN) - 6a43c7f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Could we add a simple function to extract basic stats on number of profiles/ indicators etc. Janine Dellar wanted these stats and they maybe useful for anyone who wants to know how much there is in Fingertips
`
counts profiles, total published indicators, and distinct indicators in fingertips
fingertips_stats <- function(){
cat("This may take a few moments... ")
require(glue, quietly = TRUE)
require(fingertipsR, quietly = TRUE)
profiles_n <- length(unique(profiles()$ProfileName))
indicatorid_n <- length(unique(indicators()$IndicatorID))
indicators_n <- length(indicators()$IndicatorID)
result <- glue(
)
result
}
`
gives
This may take a few moments... On 02/01/2018 Fingertips consisted of 73 profiles, 4559 indicators and 1647 distinct indicators.
The text was updated successfully, but these errors were encountered: