由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - R comma between numbers
相关主题
help with reading a strange csv file into SASwhere is error in SAS
用SAS如何管理large datset,存储,读取,高效的数据处理?偷懒请教一下comma隔开的数字怎么样read进sas成numeric variable
random forest model修改再问:如何read multiple lines into one record and missing value at the same time in sas
请教, base 50 一个题目,我的SAS CODE 错那儿了?
reading data into sas 问题请问我们平时在SAS里头那种data叫什么format的data呀?
R: 怎么读入某个field中含有comma的文件?大数据如何在R和sas之间转换
问一下SAS base 42题company's E-Verifying number
a quick question importing txt into SAS接着How to transpose a data frame in R问一句。
相关话题的讨论汇总
话题: comma话题: numbers话题: between话题: header话题: two
进入Statistics版参与讨论
1 (共1页)
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):
1 (共1页)
进入Statistics版参与讨论
相关主题
接着How to transpose a data frame in R问一句。reading data into sas 问题
用R灌水的终极利器。R: 怎么读入某个field中含有comma的文件?
R语言在用 read.table 读取 .txt 数据文件时如何去掉第一行?问一下SAS base 42题
笨人sas/excel 问题a quick question importing txt into SAS
help with reading a strange csv file into SASwhere is error in SAS
用SAS如何管理large datset,存储,读取,高效的数据处理?偷懒请教一下comma隔开的数字怎么样read进sas成numeric variable
random forest model修改再问:如何read multiple lines into one record and missing value at the same time in sas
请教, base 50 一个题目,我的SAS CODE 错那儿了?
相关话题的讨论汇总
话题: comma话题: numbers话题: between话题: header话题: two