f******9 发帖数: 267 | 1 I have a file containing many numbers. How can I add comma between every two
numbers in order to read in
all the data to R? Thanks! | D******n 发帖数: 2836 | 2 U don't need to
I have a file containing many numbers. How can I add comma between every two
numbers in ........
★ Sent from iPhone App: iReader Mitbbs 6.0 - iPhone Lite
【在 f******9 的大作中提到】 : I have a file containing many numbers. How can I add comma between every two : numbers in order to read in : all the data to R? Thanks!
| f******9 发帖数: 267 | 3 Then what's the best way to do this.......
two
【在 D******n 的大作中提到】 : U don't need to : : I have a file containing many numbers. How can I add comma between every two : numbers in ........ : ★ Sent from iPhone App: iReader Mitbbs 6.0 - iPhone Lite
| w***e 发帖数: 35 | 4 In R, to read such file into memory:
DatSet <- read.table(StrPathFile,sep=",",header=T); %with header
DatSet <- read.table(StrPathFile,sep=",",header=F); %without header
If you do need to add 'comma' between two number, use 'gvim' to do that (
normal mode): |
|