I have a data frame whose one of the column has this data. [email protected]; [email protected]; [email protected]
q= tibble("[email protected]; [email protected]; [email protected]")
separate_rows(q,sep = ";")
I have a data frame whose one of the column has this data. [email protected]; [email protected]; [email protected]
q= tibble("[email protected]; [email protected]; [email protected]")
separate_rows(q,sep = ";")
You need to specify the column. For your one and only column:
separate_rows(q,1 ,sep = ";")
# A tibble: 3 × 1
`"[email protected]; [email protected]; [email protected]"`
<chr>
1 "[email protected]"
2 " [email protected]"
3 " [email protected]"
It would be clearer if you named the column. And you might want to use "; " (with a space) as the separator
q <- tibble(email = "[email protected]; [email protected]; [email protected]")
q %>%
separate_rows(email, sep = "; ")
Result:
# A tibble: 3 x 1
email
<chr>
1 [email protected]
2 [email protected]
3 [email protected]