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 wrote:
> On 02/21/2013 07:10 AM, Joanna Papakonstantinou wrote:
>
>> Some of the n
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
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 wrote:
>
> On Feb 20, 2013, at 10:14 AM, Joanna Papakonstant
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
> (Da
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 and
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,
Mich
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.
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)
na
plication.
Steve E
>>> amor Gandhi 28/04/2009 13:33 >>>
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 schrieb am Di, 28.4.2009:
Von: S Ellison
Betreff: Re: [R] dupl
t; --- Uwe Ligges schrieb am Di,
28.4.2009:
>
>
> Von: Uwe Ligges
> Betreff: Re: [R] duplicate 'row.names' are not allowed
> An: "amor Gandhi"
> CC: r-h...@stat.math.ethz.ch, "S Ellison"
> Datum: Dienstag, 28. April 2009, 15:04
>
>
>
&
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 schrieb am Di, 28.4.2009:
Von: Uwe Ligges
Betreff: Re: [R] duplicate 'row.names' are not allowed
An: "amor Gandhi"
CC: r-h...@stat
not as a
separate variavle.
And I do not undertsand which principle is behind your renaming. You
need to give a real example.
Uwe Ligges
Many thanks
--- Uwe Ligges schrieb am Di, 28.4.2009:
Von: Uwe Ligges
Betreff: Re: [R] duplicate 'row.names' are not allowed
An: "a
: [R] duplicate 'row.names' are not allowed
An: "amor Gandhi"
CC: r-h...@stat.math.ethz.ch, "S Ellison"
Datum: Dienstag, 28. April 2009, 14:52
amor Gandhi wrote:
> Thank you for your reply :)! Is it possible to solve the problem by using
> A.4, A.4a, A.9
rs let say 42, do you?
Regards
Petr
>
> Many thanks
>
>
> --- S Ellison schrieb am Di, 28.4.2009:
>
>
> Von: S Ellison
> Betreff: Re: [R] duplicate 'row.names' are not allowed
> An: r-h...@stat.math.ethz.ch, "amor Gandhi"
> Datum: Dien
son
Betreff: Re: [R] duplicate 'row.names' are not allowed
An: r-h...@stat.math.ethz.ch, "amor Gandhi"
Datum: Dienstag, 28. April 2009, 14:17
You have used A.4 and A.9 twice.
Look at
nam
# or
duplicated(nam)
amor Gandhi 28/04/2009 13:04:03 >>>
Hi everyone,
*á
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 schrieb am Di, 28.4.2009:
Von: S Ellison
Betreff: Re: [R] duplicate 'row.names' are not allowed
An: r-h...@stat.math.ethz
You have used A.4 and A.9 twice.
Look at
> nam
# or
> duplicated(nam)
>>> amor Gandhi 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.
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`(`*
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 wrote:
> Hi everyone,
>
> I have got the following problem:
>
> x1 <- rnorm(1
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",
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 mess
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 = read.table("c:/horses
22 matches
Mail list logo