由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - R问题
相关主题
包子答谢,一个txt file 转换成sas的问题How well is SAS/IML studio integrating with R.?
How to prepare the SAS certificates without wasting time?How can do this with SAS
SAS中如何只保留变量名中含有reading的变量啊A SPSS question about "reading multiple data files",Thanks!!!
[question] Boosting algorithm for different loss function?问个survey的问题,谢谢大家帮忙解决一下!
请教一道 R 的题目, 谢谢a probability interview question.
R data.frame请问一个where和if的问题。
R 求助[合集] 一个统计方法的问题
问统计大侠们一个有趣的数学问题recommend several good Data Mining blogs
相关话题的讨论汇总
话题: delimited话题: read话题: table话题: tab话题: whole
进入Statistics版参与讨论
1 (共1页)
M*P
发帖数: 6456
1
I was reading a tab delimited file using either read.table() or read.csv().
read.table() cannot read the whole file as it claims that some row has less
elements than others, but read.csv() can read the whole table without error.
What is the difference between read.table() and read.csv()?
l*******h
发帖数: 151
2
read.csv() is used to read CSV which is delimited by commas. read.table is
usually used to read raw data delimited by space. For your case, reading tab
delimited files, you can also try read.delim(..., sep="\t").
M*P
发帖数: 6456
3
I used sep='\t' in both functions at the first place.

tab

【在 l*******h 的大作中提到】
: read.csv() is used to read CSV which is delimited by commas. read.table is
: usually used to read raw data delimited by space. For your case, reading tab
: delimited files, you can also try read.delim(..., sep="\t").

g**a
发帖数: 2129
4
using the following line to read the table
read.table(,sep="\t",comment="",quote="")
Some of the values must contain "#" or "\" which caused the problem.
M*P
发帖数: 6456
5
You are right, there are '#' in the table.

【在 g**a 的大作中提到】
: using the following line to read the table
: read.table(,sep="\t",comment="",quote="")
: Some of the values must contain "#" or "\" which caused the problem.

e*****t
发帖数: 642
6
use read.delim
it would be fine
1 (共1页)
进入Statistics版参与讨论
相关主题
recommend several good Data Mining blogs请教一道 R 的题目, 谢谢
help with reading data.dat file that associated with format into sasR data.frame
blank lines /sas/data stepR 求助
reading course求建议问统计大侠们一个有趣的数学问题
包子答谢,一个txt file 转换成sas的问题How well is SAS/IML studio integrating with R.?
How to prepare the SAS certificates without wasting time?How can do this with SAS
SAS中如何只保留变量名中含有reading的变量啊A SPSS question about "reading multiple data files",Thanks!!!
[question] Boosting algorithm for different loss function?问个survey的问题,谢谢大家帮忙解决一下!
相关话题的讨论汇总
话题: delimited话题: read话题: table话题: tab话题: whole