话题一:字符串操作
a <- "Hello"
b <- 'How'
c <- "are you? "
print(paste(a,b,c))
print(paste(a,b,c, sep = "-"))
print(paste(a,b,c, sep = "- -", collapse = "")) #collapse 消除字符之间的空格
a <- "Hello"
b <- 'How'
c <- "are you? "
print(paste(a,b,c))
print(paste(a,b,c, sep = "-"))
print(paste(a,b,c, sep = "- -", collapse = "")) #collapse 消除字符之间的空格
本文标题:002--字符串操作
本文链接:https://www.haomeiwen.com/subject/pbwisftx.html
网友评论