R/TH.R

TH<-function(sp,text){

  s1<-sp$TAXA_NAME
  s<-paste(sp$TAXA_NAME,sp$SPECIES,sep="(")%>%paste(.,")",sep="")

  t<-length(s1)
  i<-1
  for(i in i:t) {
    text<-str_replace(text,s1[i],s[i])
  }
  text

}
ZhuLeZi/leplant documentation built on June 25, 2019, 10:35 a.m.