Re: [R] Error in `[[<-.data.frame`(`*tmp*`, alt.name, value = integer(0)) with mlogit

2017-07-28 Thread Jeff Newmiller
/cte2.csv?dl=0 > > > >- Mail original - >De: "Jeff Newmiller" >À: san...@free.fr, "R-help" >Envoyé: Samedi 29 Juillet 2017 00:11:26 >Objet: Re: [R] Error in `[[<-.data.frame`(`*tmp*`, alt.name, value = >integer(0)) with mlogit > >I don't

Re: [R] Error in `[[<-.data.frame`(`*tmp*`, alt.name, value = integer(0)) with mlogit

2017-07-28 Thread Jeff Newmiller
9 9 9 9 9 17 ... > $ cteD : num 29.6 5.3 10.9 8.2 17.8 26 4.4 4.9 4.5 32.1 ... > $ cteTh : num 23.8 6.7 11.5 6.7 18.2 30 5.7 6 6.9 48.3 ... > $ win : Factor w/ 2 levels "no","yes": 1 1 1 2 1 1 1 1 1 1 ... > >- Mail original - >De: "Jeff Newmiller&

Re: [R] Error in `[[<-.data.frame`(`*tmp*`, alt.name, value = integer(0)) with mlogit

2017-07-28 Thread Rui Barradas
","yes": 1 1 1 2 1 1 1 1 1 1 ... below the cte2.csv url https://www.dropbox.com/s/wv7nq8tk9k87le5/cte2.csv?dl=0 - Mail original - De: "Rui Barradas" À: "peter dalgaard" , "Jeff Newmiller" Cc: r-help@r-project.org Envoyé: Jeudi 27 Juillet 2017

Re: [R] Error in `[[<-.data.frame`(`*tmp*`, alt.name, value = integer(0)) with mlogit

2017-07-27 Thread peter dalgaard
It's ancient history, but the idiocy was to take a perfectly fine[*] standard file format and make it use locale dependent number formats, instead of just standardizing on the US format for data transfer purposes. -pd [*] OK, less than perfect, given quoting issues and various other stuff...

Re: [R] Error in `[[<-.data.frame`(`*tmp*`, alt.name, value = integer(0)) with mlogit

2017-07-27 Thread Rui Barradas
Hello, Inline. Em 27-07-2017 20:36, peter dalgaard escreveu: On 27 Jul 2017, at 18:03 , Jeff Newmiller wrote: Looks like you need to pay attention to how you read in your data. In general, you should always execute one statement at a time until you know your script is working. All the e

Re: [R] Error in `[[<-.data.frame`(`*tmp*`, alt.name, value = integer(0)) with mlogit

2017-07-27 Thread Jeff Newmiller
True, except that the head of their file had periods in the numbers. -- Sent from my phone. Please excuse my brevity. On July 27, 2017 12:36:13 PM PDT, peter dalgaard wrote: > >> On 27 Jul 2017, at 18:03 , Jeff Newmiller >wrote: >> >> Looks like you need to pay attention to how you read in yo

Re: [R] Error in `[[<-.data.frame`(`*tmp*`, alt.name, value = integer(0)) with mlogit

2017-07-27 Thread peter dalgaard
> On 27 Jul 2017, at 18:03 , Jeff Newmiller wrote: > > Looks like you need to pay attention to how you read in your data. In > general, you should always execute one statement at a time until you know > your script is working. All the errors after the first one are unhelpful to > you or us.

Re: [R] Error in `[[<-.data.frame`(`*tmp*`, alt.name, value = integer(0)) with mlogit

2017-07-27 Thread Jeff Newmiller
Looks like you need to pay attention to how you read in your data. In general, you should always execute one statement at a time until you know your script is working. All the errors after the first one are unhelpful to you or us. If you actually pay attention to what is in your horse.data da

[R] Error in `[[<-.data.frame`(`*tmp*`, alt.name, value = integer(0)) with mlogit

2017-07-27 Thread sandoz
Hi, Please help about the error I am getting after the h1.dat<- line : this line worked with much more independant variables and bigger data. This time I want to work with just 2 variables cteD & cteTh. What is wrong ? > setwd("C:/Rstudio/Trot") > library(mlogit) > horse1.data<-read.csv("cte2.csv

[R] Error in data.frame

2015-01-22 Thread Jim Lemon
John Wasige wrote: > > Hi Jim, > > I still get the same error. This is to kindly request for your help. Attached > herewith is the > test dataset. Thanks for your help. ... Hi John, The file you sent is in some proprietary format that I cannot read. Fortunately there is a text header and this inc

Re: [R] Error in data.frame

2015-01-21 Thread MacQueen, Don
Since neither of the objects named in the error message, dates and spi.plot, show up in your script, it's pretty much impossible to guess. You will probably find that if you do length(dates) nrow(spi.plot) you will get different numbers. Perhaps 30 for one of them and 52559 for the other. (T

[R] Error in data.frame

2015-01-21 Thread John Wasige
Hi, Kindly help me out on this error from running SPI package. I am trying to run SPI package with 30 years rainfall data but I get this error: Error in data.frame(dates = dates, spi.plot[, 1:ncolumn]) : arguments imply differing number of rows: 30, 52559 script require("raster") requ

[R] Error in data.frame

2015-01-21 Thread John Wasige
Hi, Kindly help me out on this error from running SPI package. I am trying to run SPI package with 30 years rainfall data but I get this error: Error in data.frame(dates = dates, spi.plot[, 1:ncolumn]) : arguments imply differing number of rows: 30, 52559 script require("raster") requ

Re: [R] Error in `[.data.frame`... undefined columns selected

2012-11-18 Thread David Winsemius
On Nov 18, 2012, at 6:34 PM, Eiko Fried wrote: When I run this script on 9 variables, it works without problems. Z <- data [,c ("s1_1234_m ","s2_1234_m ","s3_1234_m ","s4_1234_m ","s5_1234_m","s6_1234_m","s7_1234_m","s8_1234_m","s9_1234_m" )] However, when I run the script on 9 different vari

[R] Error in `[.data.frame`... undefined columns selected

2012-11-18 Thread Eiko Fried
When I run this script on 9 variables, it works without problems. Z <- data[,c("s1_1234_m","s2_1234_m","s3_1234_m","s4_1234_m","s5_1234_m","s6_1234_m","s7_1234_m","s8_1234_m","s9_1234_m" )] However, when I run the script on 9 different variables, it does not work: Z <- data[,c("d_s1_m","d_s2_m","

Re: [R] Error in data.frame(...., check.names = FALSE)

2012-01-23 Thread Petr PIKAL
Hi > > Error in data.frame(, check.names = FALSE) > > Hi Petr, > > I have added for loop for previous code. Some error is coming as “error > in data.frame(, check.names = FALSE): arguments has different counts > of rows: 0, 18” for the following code. > > Can you please help? Pro

[R] error in data.frame(...., check.names = FALSE)

2012-01-21 Thread Sri krishna Devarayalu Balanagu
Hi all, Error is coming as "error in data.frame(, check.names = FALSE): arguments has differents counts of rows: 0, 18" for the following code. Can you please help? Thank you Devarayalu library(ggplot2) setwd("D:\\General Check list") library(RODBC) conn <- odbcConnectExcel ("Book1.xls")

[R] Error in data.frame

2011-01-12 Thread juile_loh
Dear Sir,I am using RClimDex. I get following error. Error in `[<-.data.frame`(`*tmp*`, dd$prcp <= (-99), "prcp", value = NA) : missing values are not allowed in subscripted assignments of data frames I hope somebody can help me to solve this problem seen I do not know much about programming. Reg