【发布时间】:2015-03-04 22:45:12
【问题描述】:
有时我想在单个字符串中打印向量中的所有元素,但它仍然单独打印元素:
notes <- c("do","re","mi")
print(paste("The first three notes are: ", notes,sep="\t"))
这给出了:
[1] "The first three notes are: \tdo" "The first three notes are: \tre"
[3] "The first three notes are: \tmi"
我真正想要的是:
The first three notes are: do re mi
【问题讨论】: