I have a table that has 3 columns, name, start and end. I'm trying to write (preferably using tidyverse) function that will take each row of that table and create (later bind all outputs) dataframe based on the logic. Obviously I need seq, but I can't figure out what function use to process the input. I tried with map_df and rowwise but no luck. Any ideas? Thanks in advance!
Here is example
input
name|start|end
A | 1 | 3
B | 1 | 4
expected output
Name|value
A |1
A |2
A |3
B |1
B |2
B |3
B |4