-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
option to repeat value in merged cells #355
Comments
It would be quite handy to have some option like |
+1. Merged cells are the bane of my existence. |
How about https://github.com/tidyverse/tidyr/blob/master/R/fill.R |
+1. Can't believe this is not already implemented somehow. EDIT: OK I just discovered the existence of |
Moving discussion from: #220 (comment)
Currently (I think) merged cells are handled by placing the value in the left-top cell of the range and placing NA in all other cells. Makes sense in many situations.
Another useful option might be to repeat the value across the previously merged range. That would, for example, be helpful in tidying files with multiple headers, as detailed here: https://howisonlab.github.io/datawrangling/Handling_multi_indexes.html#a-tidyverse-solution
However, with your suggestions from the other thread, tidyr::fill works for this sensibly if one does a little transposing:
Nonetheless, an option to unmerge and fill all cells might still be useful.
The text was updated successfully, but these errors were encountered: