Displaying 1 result from an estimated 1 matches for "dnaout".
Did you mean:
dnaoutf
2012 Oct 21
1
Changing a for loop to a function using sapply
...omizeString, simplify = TRUE), ""), collapse = "")
DNA
Rowname <- c(1:20) # provides row numbers to be used with the
sequences produced
Arrow<- rep(">",20) # provides a list of ">" to be used to separate
the row numbers and sequences
# DNAout uses a for loop to combine the vectors to create one string
vector of sequences.
DNAout<-class(character)
for(j in 1:20)DNAout[j]<- paste(Rowname[j]," ",Arrow[j]," ",DNA[j],
collapse = "" )
DNAout
##############################################################...