I want to transform a vector of adresses that look like this Firstname.Lastname@bla.com
into a dataframe that contains 3 variables firstname
lastname
and adress
.
this is the vector I want to transform emails <- c("fname1.lname1@bla.com", "fname2.lname2@bla.com", "fname3.lname3@bla.com")
What function/functions should I use?
EDIT : I'm supposed to create a function that takes an email as input and return a dataframe.