filter function is deleting my observations.
bres_tidy <- bres %>%
separate(col = "INDUSTRY_NAME", into = c("INDUSTRY_CODE", "INDUSTRY_NAME"), sep = ":") %>%
pivot_wider(names_from = EMPLOYMENT_STATUS_NAME, values_from = OBS_VALUE) %>%
mutate (SELF_EMPLOYED = (Full_time_employees + Part_time_employees) - Employment) %>%
filter(INDUSTRY_CODE == "C" | INDUSTRY_CODE == "F") %>%
select(-INDUSTRY_CODE)
This is the problem code it all runs but specifically the line
filter(INDUSTRY_CODE == "C" | INDUSTRY_CODE == "F") %>%
deletes all my observations in the object, this is severely annoying, does anyone know why its happening?