I have two data frames that result from scraping. In the one data frame (A) there may be rows where a column has a value of 'Ppd'. For these rows I need to insert blank values in another table (B) at the specific index value--so, if rows 1, 10, 15 in data frame A have a value of 'Ppd' I need to insert blank rows at rows 1, 10, 15 in data frame B.
Ideally, I could pass a vector to tibble::add_row() for the .before argument, but that is not accepted.
Any suggestions for how to do this when you have multiple rows to add and you won't know how many ahead of time?
The addition of c(0,2:6) takes into account that the row target of the second object increments every time a row is added. The 6 depends on the length returned by which.