标签: r text sum
如何从两个文本中添加总和信息?例如:
obj1 <- c("A","E","I","O","U")
现在,我怎样才能拥有“BA”,“BE”,......“BU”的对象?我试过了:
obj2=c("B"+ obj1)
但它没有用。
答案 0 :(得分:1)
如果是在R中,
obj1 = c("A","E","I","O","U") obj2 = paste("B", obj1,sep='')`