Skip to content

Commit a5f2b31

Browse files
Filter to < 30
1 parent 0a792b8 commit a5f2b31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ library(tidyverse)
22
library(here)
33

44
tvhours_table <- gss_cat %>% group_by(marital) %>%
5-
filter(age >= 30) %>%
5+
filter(age < 30) %>%
66
summarise(mean_tv_hours = mean(tvhours, na.rm = TRUE))
77

8-
write.csv(tvhours_table, here("TV_hours_marital.csv"))
8+
write.csv(tvhours_table, here("TV_hours_marital.csv"))

0 commit comments

Comments
 (0)