请教大神,R中如何实现字符串中插入变量

0
已邀请:
0

marxsong 2016-09-09 回答

我理解你的意思是:
> s<-'test'
> paste('It\'s a',s)
[1] "It's a test"
 
使用paste函数。

要回复问题请先登录注册