gravatar for kareemmoussa

2 hours ago by

Hello,
While doing my assignment (DNA TO RNA USING USER DEFINED FUNCTION) i ran the following script
DNA <- "ACCTGTCATCATCCC"
DNA_to_RNA.R <- function(DNA){
RNA <- gsub("T", "U", DNA)
Basecheck <- substring(RNA, seq(1, nchar(RNA), by = 1))
return(RNAsequence)
}
My question is can i replace gsub with user defined function that converts dna to rna
Thanks



Source link