Displaying 20 results from an estimated 30000 matches similar to: "read txt?"
2012 May 18
1
UTF-16 input and read.delim/scan
Hi all,
I am running 64-bit R 2.15.0 on windows 7. I am trying to use read.delim
to read from a file that has 2-byte unicode (CJK) characters.
Here is an example of the data (it is tab-delimited if that gets messed up):
HITId HITTypeId Title
2Q69Z6KW4ZMAGKKFRT6Q4ONO6MJF68 2LVJ1LY58B72OP36GNBHH16YF7RS7Z 看看句子,写写想法
请看以下的句子,再回答问
So read.delim (code below) doesn't read in correctly. It reads
2008 Mar 31
2
convert delimited string to vector
Hi R Users,
Simple question: How might I convert the text "a, b, c" (or for that matter "a
b c" with any delimiter - space, comma, etc.) into a 3-element character
vector?
[1] a b c
Thanks,
Brad
2010 Jul 16
8
save plot
I made a plot, but after I made a second plot, the previous plot was
gone. How can I save all the plots in a file (I do not manually copy
and paste them one by one)?
Thanks.
Linda
2010 Apr 08
1
Using read.table to read file created with read.table and qmethod = "escape"
df <- data.frame(a = "a\"b")
write.table(df, "test.csv", sep = ",", row = F)
Is there any to load test.csv into R correctly? I've tried the following:
> read.table("test.csv", sep = ",")
[1] V1
<0 rows> (or 0-length row.names)
Warning message:
In read.table("test.csv", sep = ",") :
incomplete final line
2012 Oct 24
1
incomplete final line found by readTableHeader
Hello,
I am trying to read in an Excel file that I saved as a .csv so I can analyze
my assignment data! I am getting really frustrated because this is what I
keep getting:
Warning message:
In read.table("CityData.CSV", sep = "/", header = T) :
incomplete final line found by readTableHeader on 'CityData.CSV'
I have open the file and make sure click return after
2005 Oct 11
3
Reading # in file with read.csv
I'm using read.csv to read in a csv file containing '#' characters. For
example, say I'm reading the following file (test.csv):
var1,var2,var3
a,b,c
d,e#,f
g,h,i
It outputs:
> read.csv("Raw Data\\test.csv")
var1 var2 var3
1 a b c
2 d e
3 g h i
Warning message:
incomplete final line found by readTableHeader on 'Raw Data\test.csv'
2012 Feb 17
1
incomplete final line found by readTableHeader on 'test.csv'
Hello,
I have recently had issues with read.csv where i get the following warning,
and this happens on both my OSX and Linux machines. Here is the warning
and an example CSV file is attached:
Warning message:
In read.table(file = file, header = header, sep = sep, quote = quote, :
incomplete final line found by readTableHeader on 'test.csv'
http://
2009 Dec 12
1
read.csv to read output of system()?
Dear list,
I have a file that is comma delimited but contains some erroneous
non-delimiter commas. I would like to replace these commas with
semicolons and then read the correct file into R as a data frame.
I want to do this from within R, without changing the original data
file.
My current idea of how to do this would be to use system("sed ...")
and feed the result to read.csv(), but
2004 Oct 06
3
read.delim problem with trailing spaces
I'm trying to read a comma delimited dataset that uses '.' for NA. I
found that if the last field on a line was a missing '.'
it was not read as NA, but just a '.', and the life variable was made a
factor. The data looks like this,
income,imr,region,oilexprt,imr80,gnp80,life
Afghanistan,75,400.0,4,0,185.0,.,37.5
Algeria,400,86.3,2,1,20.5,1920,50.7
1999 Apr 05
2
Win95, sharing printers and drives
I have two computers ROLAND (RedHat 5.2 and Samba) and LINDA
(Windows95).
I am already able to print on the printer connacted to LINDA. Yesterday,
before I managed to get the printer working, I was alos able to see
ROLAND's directory 'tmp' and 'winD' on LINDA.
The problem that I saw this morning was that the printing still works
but LINDA can no longer see the shares of
2005 Feb 16
7
Easy cut & paste from Excel to R?
Hi!
Is it possible to easily cut & paste data from an
Excel spreadsheet to
an R edit( ) grid or to variable?
It seems that R cannot handle the cell delimiters
Excel hands over.
Regards,
Werner
2003 Jan 17
2
read.table bug in Mac OS X (PR#2469)
Full_Name: George W. Gilchrist
Version: 1.6.2
OS: OS X
Submission from: (NULL) (128.239.124.126)
Start with a tab-delimited or comma-delimited text file created on the Mac and
use read.table("filename.txt", header=T) to read it in. When the first column of
the file contains a character vector, and there is a header line, the first
letter of the first column of the fifth row is appended
2011 Jul 05
3
problem in reading a sequence file
Dear all,
I have a file with some sequence (seq.txt). I am writting following code and
getting error! Can please help me?
seqfile<-read.table(file="seq.txt")
Warning message:
In read.table(file = "seq.txt") :
incomplete final line found by readTableHeader on 'seq.txt'
Thanks in advance
Albert
-------------- next part --------------
NNNNNNNNNNATTAAAGGGC
2010 Jun 19
1
How to read data from this csv?
I am so frustrated about reading data from this sample csv file.
My code is :
>test=read.csv(file='test.csv',header=T)
warning message:
In read.table(file = file, header = header, sep = sep, quote = quote, :
incomplete final line found by readTableHeader on 'test.csv'
>test
[1] ??.?..
<0 rows> (or 0-length row.names)
What is the problem here?
Thanks
2010 Sep 24
1
How to read this file into R.
Dear community,
I have one file named ca_boost_feature.txt,
Feature selection (Boosting:0.0025,5)!
H.2.C C.1.D C.3.R E.0.N C.2.S C.0.G H.3.G
log file: ep
If I want to use the second line of this file, how to read it into R?
varr<-read.table("/home/cdu/operon/carbonic/ca_boost_feature.txt", sep=" ",
skip=1, header=F, strip.white=TRUE, nrows=1)
Warning message:
In
2006 Feb 24
1
read table problem
Hi
I have a file saved in R, named agrexp.Rdata, shown below
> agrdata
fert yield
1 25 84
2 50 80
3 75 90
4 100 154
5 125 148
If I double clicked on this file, the data is displayed without problem.
However if I tried to import using:
> agrdata<-read.table("agrexp.Rdata") or
>
2011 Jun 01
1
read.csv and FileEncoding in Windows version of R 2.13.0
Dear R-devel List:
read.csv() seems to have changed in R version 2.13.0 as compared to version 2.12.2 when reading in simple CSV files.
Suppose I read in a 2-column CSV file ("test.csv"), say
1, a
2, b
If file is encoded as UTF-8 (on Windows 7), then under R 2.13.0
read.csv("test.csv",fileEncoding="UTF-8",header=FALSE) yields the following output
V1
1 ?
Warning
2006 Jan 29
1
additional error on read.table function
hi,
thanks to the feedback of some people I was able to
solve my problem of reading data using the read.table
function by using the file.choose function inside the
method of the read.table function.
Unfortunately, I encountered a new error message after
I chose my file.
After I unputted
data = read.table(file.choose(), header = TRUE)
I got an error saying:
Error in scan(file = file, what =
2011 May 25
2
stepwise selection cox model
Sorry, I have wrote a wrong subject in the first email!
Regards,
Linda
---------- Forwarded message ----------
From: linda Porz <linda.porz@gmail.com>
Date: 2011/5/25
Subject: combined odds ratio
To: r-help@r-project.org
Cc: r-help-request@stat.math.ethz.ch
Dear all,
I am looking for an R function which does stepwise selection cox model in r
(delta chisq likelihood ratio test) similar
2011 Jul 14
1
SQldf with sqlite and H2
SQldf with sqlite and H2
I have a large csv file (about 2GB) and wanted to import the file into R and do some filtering and analysis. Came across sqldf ( a great idea and product) and was trying to play around to see what would be the best method of doing this. csv file is comma delimited with some columns having comma inside the quoation like this "John, Doe".
I tried this first