【发布时间】:2022-10-20 20:52:57
【问题描述】:
例如,我有一个字符向量:
x = c("a","b","c")
和另一个类似的字符串:
y = "The alphabet starts with"
当我做
paste(y,x)
我明白了
[1] "The alphabet starts with a" "The alphabet starts with b"
[3] "The alphabet starts with c"
但我想得到的是:
[1] "The alphabet starts with a b c"
我如何设法得到这个?
【问题讨论】: