I'm currently doing annotation on sound and I want to work on this.
However, it happens that in one annotation, there are several species. So I have a dataframe with one column for the annotations, one for the time interval and others but no matter.
I'm working on R
Ex: A_B_C and I want to transform this line A_B_C in 3 lines A, B and C and I want to keep the other information of the first line in the other lines that have been created.
(Sorry for my english if there are any mistakes)
I have seen that it is possible to split thanks to the underscore. But in this code:
df$new <- substr(df$x, regexpr("_", df$x)+1, length(df$x))
It only creates a new column. And I don't want to do this.
It's my first post, sorry if it's not perfectly clear