The Epidemiologist R Handbook (@epirhandbook) 's Twitter Profile
The Epidemiologist R Handbook

@epirhandbook

Written by and for applied epidemiologists | Available free at epiRhandbook.com | Used 2.8 million times by 850k people | Produced by @appliedepi

ID: 1382817016709582848

linkhttp://www.epirhandbook.com calendar_today15-04-2021 22:04:17

191 Tweet

3,3K Followers

94 Following

The Epidemiologist R Handbook (@epirhandbook) 's Twitter Profile Photo

Learn R for public health with experienced epidemiologist instructors! The next course starts 17 June... with UNLIMITED 1-on-1 tutoring! Details: appliedepi.org/live TEPHINET GOARN

Applied Epi (@appliedepi) 's Twitter Profile Photo

Learn R for public health! Synchronous courses with UNLIMITED 1-on-1 tutoring. Intro & advanced options for ALL time zones: appliedepi.org/live "I gained a new superpower!" "Learnt more than any other previous R course I've attended." @epitwitter rstats #nonprofit

Learn R for public health!
Synchronous courses with UNLIMITED 1-on-1 tutoring. 
Intro & advanced options for ALL time zones:
appliedepi.org/live
"I gained a new superpower!"
"Learnt more than any other previous R course I've attended."
@epitwitter <a href="/rstats/">rstats</a> #nonprofit
Applied Epi (@appliedepi) 's Twitter Profile Photo

Congrats to 18 grads of our 40-hour LIVE course Intro to R for Applied Epidemiology🌍 Sudan, Tunisia, Morocco, Afghanistan, Pakistan, Yemen, Jordan, Iraq, Bangladesh, & Saudi Arabia! Thanks to sponsors TEPHINET and EMPHNET Enroll for 4 Nov: appliedepi.org/live Rstats

Congrats to 18 grads of our 40-hour LIVE course Intro to R for Applied Epidemiology🌍 Sudan, Tunisia, Morocco, Afghanistan, Pakistan, Yemen, Jordan, Iraq, Bangladesh, &amp; Saudi Arabia!
Thanks to sponsors <a href="/tephinet/">TEPHINET</a> and <a href="/EMPHNET/">EMPHNET</a> 
Enroll for 4 Nov: appliedepi.org/live
<a href="/rstatstweet/">Rstats</a>
Applied Epi (@appliedepi) 's Twitter Profile Photo

Publication-ready tables! How cool is it to run code and instantly generate a fully formatted table! With flextable, you can: 🖍️ Style fonts 🔗 Merge cells 📑 Add layered headings 📐 Adjust dimensions Learn more in the EpiRHandbook: epirhandbook.com/en/new_pages... #rstats #epi

Publication-ready tables! How cool is it to run code and instantly generate a fully formatted table! With flextable, you can:  
🖍️ Style fonts 
🔗 Merge cells 
📑 Add layered headings 
📐 Adjust dimensions  
Learn more in the EpiRHandbook: epirhandbook.com/en/new_pages...
#rstats #epi
Applied Epi (@appliedepi) 's Twitter Profile Photo

Day 8: Heatmaps! Epicurves are great when you have a few areas. But for dozens or hundreds of categories, if you want to see patterns then heatmaps are the way to go! epirhandbook.com/new_pages/he...

Day 8: Heatmaps! Epicurves are great when you have a few areas. But for dozens or hundreds of categories,  if you want to see patterns then heatmaps are the way to go!  epirhandbook.com/new_pages/he...
Applied Epi (@appliedepi) 's Twitter Profile Photo

Day 9: Where do R version names come from? The current version is 4.4.2: Pile of Leaves. Check yours by running R.version on your console. Internet chat suggests these names are all inspired by the Peanuts comic. And sure enough… #r #rstats #charliebrown #peanuts 🥜

Day 9: Where do R version names come from?  

The current version is 4.4.2: Pile of Leaves. Check yours by running R.version on your console.  

Internet chat suggests these names are all inspired by the Peanuts comic.  And sure enough…   

#r #rstats #charliebrown #peanuts 🥜
Applied Epi (@appliedepi) 's Twitter Profile Photo

Day 10: Code readability! Are you making life harder for yourself in R? Or are you using rainbow parentheses and highlighted functions!? Which one does your code look like?

Day 10: Code readability! 

Are you making life harder for yourself in R? Or are you using rainbow parentheses and highlighted functions!?

Which one does your code look like?
Applied Epi (@appliedepi) 's Twitter Profile Photo

To enable these features, go to your Global Options, Code, and tick these two boxes under ‘Syntax’. Happy coding! #rstats #lifehacks #epi #r

To enable these features, go to your Global Options, Code, and tick these two boxes under ‘Syntax’.  

Happy coding!

#rstats #lifehacks #epi #r
Applied Epi (@appliedepi) 's Twitter Profile Photo

🎄Day 11 🎄: Multi-panel figures! The R package {patchwork} makes professional-looking multi-panel figures like this SUPER easy to do. This means more efficient story telling, saved space, and clearer comparisons between groups. #r #dataviz #epi #rstats

🎄Day 11 🎄: Multi-panel figures! 

The R package {patchwork} makes professional-looking multi-panel figures like this SUPER easy to do. 

This means more efficient story telling, saved space, and  clearer comparisons between groups.

#r #dataviz #epi #rstats
Applied Epi (@appliedepi) 's Twitter Profile Photo

🎄Day 12: Missing data🎄 Epis know well that missingness can skew analyses, so needs careful review. {naniar} can help! E.g.: ☑️pct_miss_case(): to check % of rows with NAs ☑️gg_miss_var(): to visualize missingness by column See more: Ch. 20 of the EpiRHandbook.com!

🎄Day 12: Missing data🎄

Epis know well that missingness can skew analyses, so needs careful review. 

{naniar} can help! E.g.:

☑️pct_miss_case(): to check % of rows with NAs
☑️gg_miss_var(): to visualize missingness by column

See more: Ch. 20 of the EpiRHandbook.com!
Applied Epi (@appliedepi) 's Twitter Profile Photo

🎄Day 17: RStudio magic🎄 Want to be in multiple places at once over the holidays? We can't help with that. But - we can show you how to type in multiple places at once in RStudio! 😮 Useful for making the same edit across your code, when Find + Replace isn't suitable.

Applied Epi (@appliedepi) 's Twitter Profile Photo

🎄Day 20: Ggplot efficiency: part 2 🎄 Visualizing the same variables in different ways (e.g. sex by time/place)? 💡Tip: Easily standardize colour palettes by defining them once at the start of your code. Then reuse the palettes within scale_fill/color_manual() across plots

🎄Day 20: Ggplot efficiency: part 2 🎄

Visualizing the same variables in different ways (e.g. sex by time/place)?   

💡Tip: Easily standardize colour palettes by defining them once at the start of your code.  Then reuse the palettes within scale_fill/color_manual() across plots
Applied Epi (@appliedepi) 's Twitter Profile Photo

🎄Day 21: Ggplot efficiency part 3 🎄 Need many plots with the same style/formatting but slightly different inputs? 💡Create a custom ggplot function! Define your plot upfront in the function. Then run the function for each new plot with different inputs.

🎄Day 21: Ggplot efficiency part 3 🎄

Need many plots with the same style/formatting but slightly different inputs?  

💡Create a custom ggplot function! 

 Define your plot upfront in the function. Then run the function for each new plot with different inputs.
Applied Epi (@appliedepi) 's Twitter Profile Photo

🎄Day 22: An R Christmas Tree 🎄 There's still time to write your Christmas cards! And what better captures the yuletide spirit than...R... Seriously though, check out the {christmas} package by Jose Barrera-Gomez (Jose Barrera). Stunning!

🎄Day 22: An R Christmas Tree 🎄

There's still time to write your Christmas cards! 

And what better captures the yuletide spirit than...R...  

Seriously though, check out the {christmas} package by Jose Barrera-Gomez (<a href="/overdispersion/">Jose Barrera</a>). Stunning!
Applied Epi (@appliedepi) 's Twitter Profile Photo

Today's post is for anyone with bdays this time of the year. Including our Exec Director, an expert in "combo Xmas/bday" presents! Happy birthday Neale! On that note, ever work with multiple date columns but need to pick one? Use coalesce() to easily prioritize a value! #Rstats

Today's post is for anyone with bdays this time of the year. Including our Exec Director, an expert in "combo Xmas/bday" presents! Happy birthday Neale!

On that note, ever work with multiple date columns but need to pick one? Use coalesce() to easily prioritize a value!

#Rstats
The Epidemiologist R Handbook (@epirhandbook) 's Twitter Profile Photo

Apply for R course scholarships! Applications open January 20 for teams working in applied epidemiology and public health in low- and middle-income countries. Follow Applied Epi for more info. #rstats #epitwitter #Scholarships