I have data like this: (many more columns not shown here)
df<-structure(list(email = c("lbelcher@place.org", "bbelchery@place.org",
"b.smith@place.org", "jsmith1@place.org"), employee_number = c(123456,
654321, 664422, 321458)), row.names = c(NA, -4L), class = c("tbl_df",
"tbl", "data.frame"))
And I need to make a third column called "username". Username is usually just everything before the @ in their email UNLESS there's a period or a number in that name, then it would be their employee number.
In other words, I'm hoping to get results like this:
Any help would be appreciated!
