0
我想从列中读取数据,然后将我想要的信息连接成一个字符串。r-concatenate列表中的n个元素
到目前为止,我写了R脚本成功的单个字符串输入,但我不能为它做n
元素。
reprows <- strsplit("Day1_XExp2B3_500x_Y_Z", "_", fixed = T)
lenreprows <- length(reprows[[1]])
temprepnamelisttopaste <- c(2:(lenreprows-2))
temprepname <- paste(sapply(reprows[temprepnamelisttopaste]),collapse='.')
数据看起来像每一行:
Day1_XExp2B3_500x_Y_Z
我的输出应该是:
XExp2B3.500x