I have a very big data of email id like below
Email
abc@LIVE.com
dfg@live.com
bhjus@Hotmail.com
bhuio@hotmail.com
now i am trying to create a summary of domain counts, i am trying like below but its very time taking , i am getting count of two domain count for lower case and upper case
domain count
HOTMAIL 1
hotmail 1
domain_ct <- df %>% select(Email) %>% filter(!is.na(Email)) %>% tolower(Email)
domain_ct <- as.data.frame(table(sub(".*@", "",domain_ct$Email )))
getting error
Error in tolower(., Email) : unused argument (Email)
do we have any other solution for this.....