Watts-College / cpp-527-spr-2022

https://watts-college.github.io/cpp-527-spr-2022/
0 stars 1 forks source link

Final Project Step 7 Error #36

Closed mrowland1 closed 2 years ago

mrowland1 commented 2 years ago

I am getting the following error: Error: arrange() failed at implicit mutate() step.

when running this code:

academic.units <- c("CISA-Intrdisp Hum & Comm", "CISA-Science & Mathmatics", "College of Health Solutions MS", "College of Health Solutions NT", "College of Health Solutions SH", "College Of Law", "English", "Hugh Downs School Of Comm", "Humanities Arts & Cultural", "Journalism & Mass Comm", "Ldrshp and Integrative Studies", "Math & Natural Sciences Div", "MDT Music", "Physics Department", "Psychology", "Sch Biological & Hlth Sys Engr", "Sch Compt Infor & Dec Sys Engr", "Sch Elect Comptr & Energy Engr", "Sch Engr Matter Trnsprt Energy", "Sch Future of Innov in Society", "Sch Sustain Engr & Built Envrn", "School Of Art", "School of Criminology & Crim J", "School Of Earth & Space Explor", "School of Geog Sci & Urban Pln", "School of Math & Stat Sciences", "School of Molecular Sciences", "School of Politics & Global St", "School Of Public Affairs", "School of Social Transform", "School Of Social Work", "SHPRS History Faculty", "Social & Behavioral Sciences", "Sols Administration & Faculty", "SOS Faculty & Researchers", "The Design School", "The Sanford School", "WPC Accountancy", "WPC Economics", "WPC Information Systems", "WPC Management", "WPC Supply Chain Management") get_study_sample <- function(d) { d <- d%>% filter( title != "" & ! is.na(title) ) %>% filter( Department.Description %in% academic.units ) %>% arrange( Department.Description, title ) return(d) }

get_study_sample(d)