the 'separate' call is not supporoted in arrow/R, please fix the problem while staying…
- User
the 'separate' call is not supporoted in arrow/R, please fix the problem while staying in tidyverse please lib %>% separate(col="Annot", into=c("F1_C1"), sep=" ", remove=FALSE) %>% separate(col="F1", into=c("f1"), sep=",", extra="drop") %>% separate(col="C1", into=c("c1","c2"), sep="/") %>% separate(col="f1", into=c("FragType","ppm"), sep="/")
Assistant
You can achieve the same result using the
separate_columnsfunction from thestringrpackage inside thetidyverse. Here's the modified code:library(stringr) lib %>% mutate(Annot = str_split(Annot, " ")) %>% unnest(Annot) %>% mutate(Annot = str_split(Annot, ",")) %>% unnest(Annot) %>% separate_columns(C1, c("c1", "c2"), sep="/") %>% separate_columns(Annot, c("FragType", "ppm"), sep="/")
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.