Select 도우미
영상에서 starts_with()라는 select 도우미에 대해 배웠어요. 또 다른 select 도우미로 ends_with()가 있는데, 이는 특정 문자열로 끝나는 열을 찾아줘요.
이 연습은 강의의 일부입니다
dplyr로 데이터 조작하기
연습 안내
state,county,population열과,work로 끝나는 모든 열을 선택하세요.- 인구의 최소 50%가 공공 업무에 종사하는 카운티만 필터링하세요.
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
counties %>%
# Select the state, county, population, and those ending with "work"
___
# Filter for counties that have at least 50% of people engaged in public work
___