🚗 Video too fast or too slow? Click the gear icon ⚙️ at the bottom-right to change the speed!


Lesson code

Please download the zip folder below to code along with the instructor!

After downloading, unzip the folder, open the RStudio Project file within, then open the “VIDEO_CODE_ALONG” script and type along with the instructor in the video above!

Lesson notes

The written guide below is an accompaniment to the lesson video. You may read through it if you prefer written tutorials to video content.

👋 Before you go, leave an anonymous rating & feedback

Average rating 4.5 / 5. Vote count: 25

No votes so far! Be the first to rate this post.

Please share any positive or negative feedback you may have.

Feedback is completely anonymous

7 Comments
Newest
Oldest Most Voted
Carola

Hello, this chunk does not run
cat_plot_list <- vector(“list”,length(radiologic_levels_6m))
for (level in radiologic_levels_6m) {
  
  
 cat_plot <- 
 medicaldata::strep_tb %>%  
 filter(radiologic_levels_6m == level) %>% 
 inspectdf::inspect_cat() %>%
 inspectdf::show_plot()
  
 # Append to the list
 cat_plot_list[[level]] <- cat_plot
  
}

Error: Error in filter():
https://s.w.org/images/core/emoji/14.0.0/svg/2139.svg In argument: radiologic_levels_6m == level.
Caused by error:
! ..1 must be of size 107 or 1, not size 6.
Run rlang::last_trace() to see where the error occurred.

Hope you can help me to solve it. Thank you!

Carola

I realized I made a mistake writing the variable name. Problem solved

Rodrigue

can some one help ?

ia m trying to run this code chunk but its not working , and I faced this issue several times on other code chunks as well

{r}

# for i in 1:length(ages), print ages[i] * 12
  
 for (summer in indices) {
 print (ages[summer]*12)
  }

Rodrigue

I don’t get any specific error message , the code chunk does not run and when I try to highlight the code, and it does not run

Joy

Hi Rodrigue, it’s hard to spot the exact issue without seeing the code in the script. It would be helpful if you could attacn a screenshot of your Rstudio, or post on the help forum with your Rmd attached.

7
0
Questions or comments?x