moodymudskipper / unglue

Extract matched substrings using a pattern, similar to what package glue does in reverse
GNU General Public License v3.0
159 stars 2 forks source link

use `{}` for `{=.*?}` #24

Closed moodymudskipper closed 4 years ago

moodymudskipper commented 4 years ago

It wouldn't be surprising

And implementation should be quite simple.

s1 <- read.table(text="sample
Br_LV_0040324_BC1_1
Br_LV_0040324_BC1_2
Br_LV_0040324_BC1_3
Br_LV_0040324_BC1_4
Br_LV_0040324_LBR_1
Br_LV_0040324_LBR_2", header = T, stringsAsFactor=F)
unglue_unnest(s1, sample, "{=.*?}_{=.*?}_{=.*?}_{index}_{=.*?}", remove = FALSE)
moodymudskipper commented 4 years ago

done (seemed like it worked already!)

github-actions[bot] commented 2 years ago

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.