조건으로 필터링하기
filter() 동사는 특정 조건을 만족하는 관측값만, 또는 여러 조건을 만족하는 관측값만 선택할 때 사용해요.
이 연습은 강의의 일부입니다
dplyr로 데이터 조작하기
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
counties_selected <- counties %>%
select(state, county, population)
counties_selected %>%
# Filter for counties with a population above 1000000
___