Open carriewright11 opened 1 month ago
library(tidyverse)
ces <- read_csv(file = "https://daseh.org/data/CalEnviroScreen_data.csv")
ces %>% mutate(new_col_case_when = case_when(Longitude < -121 & Latitude > 37.8 ~ "Distract A", TRUE ~ "District B")) %>% pull(new_col_case_when)
ces %>% mutate(num_col_mutate = Longitude * Latitude ) %>% pull(num_col_mutate)
ces %>% mutate(num_new = case_when(Longitude < -121 & Latitude > 37.8 ~ Longitude * Latitude)) %>% pull(num_new)
could also add an extra slide about n_complete_row