在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
一、paste函数 paste (..., sep = " ", collapse = NULL) paste0(..., collapse = NULL) paste converts its arguments (via as.character) to character strings, and concatenates them (separating them by the string given by sep). If the arguments are vectors, they are concatenated term-by-term to give a character vector result. Vector arguments
are recycled as needed, with zero-length arguments being recycled to "". paste函数将他的参数转换为字符串并连接他们,字符串之间用seq间隔分开。 当参数是多个向量时,分别取每个参数中索引为0的连接起来,如果规定了seq,他们之间用seq间隔,如此循环下去若规定了collapse参数,每个有参数连接的结果用collapse连接。 |
请发表评论