반응형 count()1 (R) count the number of elements/ count() count(): count the number of elements of each variable >?count df%>%group_by(a,b)%>%summarise(n=n() ∥∥df%>%count(a,b) > mpg2%select(manufacturer,class)%>%filter(manufacturer=="audi")> mpg2# A tibble: 18 x 2 manufacturer class 1 audi compact 2 audi compact 3 audi compact 4 audi compact 5 audi compact 6 audi compact 7 audi compact 8 audi compact 9 audi compact10 audi compact11 audi compact12 audi .. 2020. 7. 29. 이전 1 다음 반응형