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

need if statements in region stats #83

Closed
AnnaGoodman1 opened this issue Apr 9, 2019 · 3 comments
Closed

need if statements in region stats #83

AnnaGoodman1 opened this issue Apr 9, 2019 · 3 comments

Comments

@AnnaGoodman1
Copy link
Contributor

@Robinlovelace / @usr110 / @nikolai-b , can anyone fix this if statement in rmd for me? almost but not quite working....

in https://github.com/npct/pct-scripts/blob/master/commute/msoa/region_stats.Rmd, line 67. First if works fine, second doesn't as I can;t work out how to embed an R number. code not working is:

r if(region_build_param$mingodutch_rnet!=0){paste0("In the online version of the clickable route network we only present route segments that contain at least", r region_build_param$mingodutch_rnet cyclists, " in the Go Dutch scenario. The downloads include all route segments."}

@AnnaGoodman1
Copy link
Contributor Author

@Robinlovelace , do you know how to fix this? thanks...

@Robinlovelace
Copy link
Member

Hey Anna, please see c67567f

That should do it - with an if() else {} statement - more clear with the code separate from the text - not tested yet though. Cheers for the nudge and thanks for the amazing work!

@AnnaGoodman1
Copy link
Contributor Author

yes works perfectly, thanks @Robinlovelace !

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