Closed jharsell closed 4 years ago
Hey Jaime,
I attempted to have the code read in whatever was in the instnm
column and look for it in the mission
column (I didn't mutate and create a new column). Here's the code I ran:
df %>%
## isolate the two columns I need
select(instnm, mission) %>%
## filter just the institutions with an actual mission statement
filter(!is.na(mission)) %>%
## use string detect to look for a pattern and keep those that do contain the pattern (in the mission column, look for instnm)
filter(str_detect(mission, instnm)) %>%
## tell me how many there are
count()
I got an answer that seems reasonable, close to half of those with mission statements include the name of the institution. What did other people find?
Thank you for sharing, I appreciate your help Jess!
Thanks for the assist, @inmanjes!
I'm closing this now, but anyone feel free to reopen if you have more questions.
Hi All,
I am completely stuck on trying to search for the institutional name within the mission, here is one of the variations of code I ran:
Am I way off in left field or not in the ballpark?
Thanks, Jaime and Dr. Quack (my duck)