Skip to content
R for the Rest of Us Logo

Getting Started

This lesson is locked

Get access to all lessons in this course.

Transcript

Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.

Learn More

Information about the NHANES is available on the CDC website. Information about the NHANES R package is here.

Have any questions? Put them below and we will help you out!

You need to be signed-in to comment on this post. Login.

Vuk Sekicki

Vuk Sekicki

March 17, 2021

https://www.youtube.com/watch?v=GmnN2r5J0YA broken link, just FYI.

David Keyes

David Keyes

March 17, 2021

Updated, thanks!

Sara Cifuentes

Sara Cifuentes

March 29, 2022

Could you explain the meaning of "custom CSS" better, please?

Charlie Hadley

Charlie Hadley

March 30, 2022

Sure! We often use .Rmd to create HTML output (reports and presentations). HTML is the language used to write web pages, each web page is a .html file containing HTML code. Here is an intro guide to HTML.

However, when it comes to styling HTML content we use CSS. In the CSS language we (for instance) specify that paragraphs should be indented, have double line spacing and should be in a particular font. This guide walks through how to add CSS to an RMarkdown document.

Let me know if you have follow up questions. Cheers, Charlie

Tatiana Bustos

Tatiana Bustos

July 21, 2022

It looks like the video is no longer available.. Is that accurate? Just want to make sure it isn't another link related issue. Thanks !

David Keyes

David Keyes

July 21, 2022

Sorry, it was deleted!

Nadia Chang

Nadia Chang

October 6, 2022

If I want to download the package, the link above send you to a page with this information: Package source: NHANES_2.1.0.tar.gz Windows binaries: r-devel: NHANES_2.1.0.zip, r-release: NHANES_2.1.0.zip, r-oldrel: NHANES_2.1.0.zip macOS binaries: r-release (arm64): NHANES_2.1.0.tgz, r-oldrel (arm64): NHANES_2.1.0.tgz, r-release (x86_64): NHANES_2.1.0.tgz, r-oldrel (x86_64): NHANES_2.1.0.tgz

which one should I install (I am using Mac) and what are the binaries options that are there? or should I only: install.packages("nhanes") in the console?

Charlie Hadley

Charlie Hadley

October 6, 2022

Hi Nadia,

You can use install.packages to install the package, but please not that ALL R code is case sensitive. You will need to run

install.packages("NHANES")

Thanks, Charlie

Morgan Garner

Morgan Garner

March 15, 2023

Hello! I am having a blast working through this course. Especially the NHANES data wrangling section (this is exactly why I wanted to learn R)! I was having trouble creating a new variable based on another preexisting variable, then I realized that some of the variable field names in the NHANES dataset have changed since this tutorial was created. I was able to discover this by using the view() function. I updated the variable name in my code and voila! Simple fix! I'm already using the tools I've learned in this course and feel so accomplished being able to troubleshoot already!! Many thanks to the R for the Rest of Us team!

David Keyes

David Keyes

March 15, 2023

Glad you like the course! I like the view() function too. Use it all the time!

Oscar Tetteh

Oscar Tetteh

March 25, 2023

Please, how can I get the nhanes data.

David Keyes

David Keyes

March 27, 2023

Did you download the course materials? If so, you'll need to open the project that was downloaded (look for the .Rproj file and double click it to open the project).

Andrew Paquin

Andrew Paquin

March 25, 2023

Hi. I am trying to update my packages in R as directed in the video above. I get the following error message (in red): Error in gzfile(file, mode) : cannot open the connection In addition: Warning message: In gzfile(file, mode) : cannot open compressed file 'C:\Users\paquinan\AppData\Local\Temp\RtmpoFAckU/libloc_185_13d200b7.rds', probable reason 'No such file or directory' I have no idea what this means, but it does not look good. What should I do?