I have dataframe which has column called email. I want to find email addresses after @ symbol and then group by e.g (gmail,yahoo,hotmail) and count the occurrences of the same.
registrant_email
chamukan@yahoo.com
tmrsons1974@yahoo.com
123ajumohan@gmail.com
123@websiterecovery.org
salesdesk@2techbrothers.com
salesdesk@2techbrothers.com
Now I can extract emails after @ using below code
sub(".*@", "", df$registrant_email)
How can I use it in dplyr pipe and then count occurrences of each email address