두 개의 데이터 프레임이 있습니다.두 번째 데이터 프레임으로 데이터 프레임 필터링
selectedcustomersa
은 50 명의 고객에 대한 정보가 포함 된 데이터 프레임입니다. 주먹 열은 이름입니다 (Group.1).
selectedcustomersb
은 2000 년 고객에 대한 정보가있는 다른 데이터 프레임 (동일한 구조)과 selectedcustomersa
의 고객이 포함되어 있습니다.
고객이 없으면 selctedcustomersa
이 필요하지 않습니다.
newselectedcustomersb<-filter(selectedcustomersb, Group.1!=selectedcustomersa$Group.1)
'setdiff'를 사용할 수 있습니다. 'newselectedcustomersb <- selectedcustomersb [selectcustomersb $ Group1 % in setdiff (selectedcustomersb $ Group.1, selectedcustomersa $ Group.1)]와 같은 것입니다. – lmo