Thank you. I ended up converting the excel file to a csv file and using
mytable-read.csv(myfile, header=T)
and it worked so I abandoned using the tab delimited txt file.
On Wed, Feb 20, 2013 at 9:29 PM, Jim Lemon j...@bitwrit.com.au wrote:
On 02/21/2013 07:10 AM, Joanna Papakonstantinou wrote:
I am getting an error when trying to import tab delimited .txt file saved
from Excel.
I have read what is posted on the forums but still am confused.
I saved my Excel file (DataTestforR.xlsx) as a tab delimited txt file
(DataTestR.txt) on my Desktop.
In the RGUI, I tried to import the txt file
On Feb 20, 2013, at 10:14 AM, Joanna Papakonstantinou wrote:
I am getting an error when trying to import tab delimited .txt file saved
from Excel.
I have read what is posted on the forums but still am confused.
I saved my Excel file (DataTestforR.xlsx) as a tab delimited txt file
Some of the names in the columns actually have spaces in them (e.g., S L TX
is in one column). So there are really 9.
I was able to save the file as a csv file and read.table succesfully.
On Wed, Feb 20, 2013 at 2:03 PM, David Winsemius dwinsem...@comcast.netwrote:
On Feb 20, 2013, at 10:14
On 02/21/2013 07:10 AM, Joanna Papakonstantinou wrote:
Some of the names in the columns actually have spaces in them (e.g., S L TX
is in one column). So there are really 9.
I was able to save the file as a csv file and read.table succesfully.
Hi Joanna,
As you specified space ( ) as the field
Hi
I have an example file in excel and i have following instructions to open and
analyze the data in it.
library(RODBC)
library(mlogit)
z-odbcConnectExcel(C:\\2008 Racedata.xls)
Everything ok untill the next command
x-mlogit.data(y,choice=winner,shape=long,id.var=datekey,alt.var=horseno)
There's a no-homework policy on this list and given that you are sending
from a .student account and referencing example assignments, you probably
won't get any help. Looking at the given code, it seems like you should get
in touch with a TA sooner rather than later though.
Best of luck,
Michael
...@statistik.tu-dortmund.de schrieb am Di,
28.4.2009:
Von: Uwe Ligges lig...@statistik.tu-dortmund.de
Betreff: Re: [R] duplicate 'row.names' are not allowed
An: amor Gandhi amorigan...@yahoo.de
CC: r-h...@stat.math.ethz.ch, S Ellison s.elli...@lgc.co.uk
Datum: Dienstag, 28. April 2009, 15:04
? How one cand do this in R?
Many thanks
--- S Ellison s.elli...@lgc.co.uk schrieb am Di, 28.4.2009:
Von: S Ellison s.elli...@lgc.co.uk
Betreff: Re: [R] duplicate 'row.names' are not allowed
An: r-h...@stat.math.ethz.ch, amor Gandhi amorigan...@yahoo.de
Datum: Dienstag, 28. April 2009, 14:17
Apologies; my earlier reply preceded this extra info.
If you are reading a large file with duplicate row names, try reading
it in as is, then simply converting the numeric parts to a matrix.
For example, if you had the same kind of data frame as before
x1 - rnorm(11,5,1)
x2 - runif(11,0,1)
nam -
You are trying to create an illegal object, i.e. a
data.frame with duplicate row names so its
correctly signally the error.
Read the definition of data.frame in ?data.frame
On Tue, Apr 28, 2009 at 8:04 AM, amor Gandhi amorigan...@yahoo.de wrote:
Hi everyone,
I have got the following problem:
amor Gandhi wrote:
Hi everyone,
Â
I have got the following problem:
Â
x1 - rnorm(10,5,1)
x2 - runif(10,0,1)
nam1 - paste(A,1:4,sep=.)
nam2 - paste(A,6:9,sep=.)
nam - c(nam1,A.4,nam2,A.9)
mydata - data.frame(x1,x2)
rownames(mydata) - nam
Error in `row.names-.data.frame`(`*tmp*`, value =
You have used A.4 and A.9 twice.
Look at
nam
# or
duplicated(nam)
amor Gandhi amorigan...@yahoo.de 28/04/2009 13:04:03
Hi everyone,
*á
I have got the following problem:
*á
x1 - rnorm(10,5,1)
x2 - runif(10,0,1)
nam1 - paste(A,1:4,sep=.)
nam2 - paste(A,6:9,sep=.)
nam - c(nam1,A.4,nam2,A.9)
Hi everyone,
Â
I have got the following problem:
Â
x1 - rnorm(10,5,1)
x2 - runif(10,0,1)
nam1 - paste(A,1:4,sep=.)
nam2 - paste(A,6:9,sep=.)
nam - c(nam1,A.4,nam2,A.9)
mydata - data.frame(x1,x2)
rownames(mydata) - nam
Error in `row.names-.data.frame`(`*tmp*`, value = c(A.1, A.2, A.3, :
Thank you for your reply :)! Is it possible to solve the problem by using A.4,
A.4a, A.9 and A.91? How one cand do this in R?
Many thanks
--- S Ellison s.elli...@lgc.co.uk schrieb am Di, 28.4.2009:
Von: S Ellison s.elli...@lgc.co.uk
Betreff: Re: [R] duplicate 'row.names' are not allowed
...@lgc.co.uk
Betreff: Re: [R] duplicate 'row.names' are not allowed
An: r-h...@stat.math.ethz.ch, amor Gandhi amorigan...@yahoo.de
Datum: Dienstag, 28. April 2009, 14:17
You have used A.4 and A.9 twice.
Look at
nam
# or
duplicated(nam)
amor Gandhi amorigan...@yahoo.de 28/04/2009 13:04:03
say 42, do you?
Regards
Petr
Many thanks
--- S Ellison s.elli...@lgc.co.uk schrieb am Di, 28.4.2009:
Von: S Ellison s.elli...@lgc.co.uk
Betreff: Re: [R] duplicate 'row.names' are not allowed
An: r-h...@stat.math.ethz.ch, amor Gandhi amorigan...@yahoo.de
Datum: Dienstag, 28. April
:
Von: Uwe Ligges lig...@statistik.tu-dortmund.de
Betreff: Re: [R] duplicate 'row.names' are not allowed
An: amor Gandhi amorigan...@yahoo.de
CC: r-h...@stat.math.ethz.ch, S Ellison s.elli...@lgc.co.uk
Datum: Dienstag, 28. April 2009, 14:52
amor Gandhi wrote:
Thank you for your reply
? How one cand do this in R?
Err, change A.4 to A.4a in your code?
Uwe
Many thanks
--- S Ellison s.elli...@lgc.co.uk schrieb am Di, 28.4.2009:
Von: S Ellison s.elli...@lgc.co.uk
Betreff: Re: [R] duplicate 'row.names' are not allowed
An: r-h...@stat.math.ethz.ch, amor Gandhi amorigan
Thanks, I can't use the name as a variable because I need to create a matrix
which does include only numerical values!
--- Uwe Ligges lig...@statistik.tu-dortmund.de schrieb am Di, 28.4.2009:
Von: Uwe Ligges lig...@statistik.tu-dortmund.de
Betreff: Re: [R] duplicate 'row.names' are not allowed
The message seems to be messed up but if your data has one more column
than the header then it will assume the first column is the row names.
Use the R count.fields function to diagnose this.
On Dec 7, 2007 1:24 AM, [EMAIL PROTECTED] wrote:
I am using read.table and keep on getting this
I am using read.table and keep on getting this message.
The function is confusing my first column with a row.names column. I have
checked the table carefully using excel and it seems quite symetric and
with a name at the top of each column.
This is what I am using:
form1 =
22 matches
Mail list logo