This question already has an answer here:
#Input Table :-
Movie Genre
Avatar Action|Sci-Fi
#Output Table Required <-
Movie Genre
Avatar Action
Avatar Sci-Fi
#Consider the name of the dataframe is input
I tried
output <-separate_rows(input, genre)
The resulted in :-
Avatar Action
Avatar Sci
Avatar Fi
Which is not what is required