- x1
- [1] "Platform: GPL11154 6 Samples"
- [2] "Platform: GPL10558 28 Samples"
- [3] "Platforms: GPL18149 GPL17077 24 Samples"
- [4] "Platforms: GPL13112 GPL17021 GPL16791 31 Samples"
- [5] "Dataset: GDS4794 Platforms: GPL96 GPL97 GPL570 70 Samples"
- [6] "Dataset: GDS4794 Platforms: GPL96 GPL97 GPL570 110 Samples"
- pat <- "\\s\\d+\\s.+"
- addr <- regexpr(pat,x1)
- fir <- substr(x1,1,addr)
- sec <- substring(x1,addr)
- fir
- [1] "Platform: GPL11154 " "Platform: GPL10558 "
- [3] "Platforms: GPL18149 GPL17077 " "Platforms: GPL13112 GPL17021 GPL16791 "
- [5] "Dataset: GDS4794 Platforms: GPL96 GPL97 GPL570 " "Dataset: GDS4794 Platforms: GPL96 GPL97 GPL570 "
- sec
- [1] " 6 Samples" " 28 Samples" " 24 Samples" " 31 Samples" " 70 Samples" " 110 Samples"
- result <- data.frame(fir,sec)
- result
- fir sec
- 1 Platform: GPL11154 6 Samples
- 2 Platform: GPL10558 28 Samples
- 3 Platforms: GPL18149 GPL17077 24 Samples
- 4 Platforms: GPL13112 GPL17021 GPL16791 31 Samples
- 5 Dataset: GDS4794 Platforms: GPL96 GPL97 GPL570 70 Samples
- 6 Dataset: GDS4794 Platforms: GPL96 GPL97 GPL570 110 Samples


雷达卡



京公网安备 11010802022788号







