cost 110 ms
Complementary sequence using gsub

I'm trying to make the complementary sequence of a dna chain stored in a vector. It's supposed to change the "A" for the "T" and the "C" for the "G" a ...

2023-01-28 05:36:10   3   47    r / gsub  
Using a function inside gsub in R

I have txt <- "{a} is to {b} what {c} is to {d}" key <- c(a='apple', b='banana', c='chair', d='door') fun <- function(x) key[x] and I woul ...

2022-12-08 16:13:15   4   122    r / string / gsub  

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM