#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
我尝试过
output <-separate_rows(input, genre)
结果为:-
Avatar Action
Avatar Sci
Avatar Fi
不需要什么
尝试separate_rows(input, genre, sep='\\|')
([sep
是一个正则表达式,因此|
需要用\\
进行转义。)