Re: [R] R 3.2.3 on Win8; mkdir command produces error

2016-02-24 Thread HEATHER MICHEL via R-help
>  > dir.exists("specdata")[1] TRUE > Error: > >> bad restore file magic number (file may be corrupted) -- no data > >> loadedIn addition: Warning message:file ‘001.csv’ has magic number > >> '"Date'  Use of save versions prior to 2 is

Re: [R] R 3.2.3 on Win8; mkdir command produces error

2016-02-14 Thread HEATHER MICHEL via R-help
Date'  Use of > save versions prior to 2 is deprecated  > pollutantmean("C:\Users\rhmichel\Desktop\rprog-data-specdata\specdata", > "sulfate", 1:10)Error: '\U' used without hex digits in character string > starting ""C:\U">  Thank you fo

[R] R 3.2.3 on Win8; mkdir command produces error

2016-02-14 Thread HEATHER MICHEL via R-help
ase tell me the command I should be using to create a directory named 'specdata' in R 3.2.3 Heather Michel [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz

[R] RInside

2015-04-03 Thread Michel
help Hello I'm newbee with R and RInside My question is about stderr in R. Is there a way to collect R stderr in C++ program embedding R Thanks in advance Michel --- L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antiv

[R] to calculate c(rep("1", 43), rep("2",43),...., rep("10",43))

2014-12-11 Thread Arnaud Michel
Hello I would like to find an elegant way of calculating c(rep("1", 43), rep("2",43),, rep("10",43)) Any idea ? Thank you -- Michel ARNAUD DGDRD-Drh - TA 174/04 tel : 04.67.61.75.38 port: 06.47.43.55.31 __ R-help@r-

Re: [R] outputs of a function

2014-12-04 Thread Arnaud Michel
Thank you Jeff and Mark for your help Michel Le 04/12/2014 15:09, Jeff Newmiller a écrit : This is a poor approach from a usability perspective... I suggest you create two separate functions rather than one. However, you seem to be missing a crucial point in the use of ggplot, which also

[R] outputs of a function

2014-12-04 Thread Arnaud Michel
Title") Total } Any idea ? -- Michel ARNAUD CIRAD Montpellier tel : 04.67.61.75.38 port: 06.47.43.55.31 [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mail

[R] To calculate the month number between 2 dates

2014-11-07 Thread Arnaud Michel
Hello Can one calculate the month number between two dates D1 <- "01/01/2007" and D2 <- "01/04/2009" ? Thank you -- Michel ARNAUD Cirad __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] To build a new Df from 2 Df

2014-10-14 Thread Arnaud Michel
Thank you David Now, the problem is to list all the combinations which verify the condition III (ie every Rapporteur has to have more or less the same number of demandeur) Have you any idea ? Michel Le 14/10/2014 13:18, david.kaeth...@dlr.de a écrit : Hello, here's a draft of a sol

[R] To build a new Df from 2 Df

2014-10-14 Thread Arnaud Michel
be balanced and not too different (Accepted differences : 1) table(dfnew$Rapporteur1) Rapporteur01 Rapporteur02 Rapporteur03 Rapporteur04 Rapporteur05 4 4 4 4 4 Thanks for your help Michel Dem <- structure(list(Nom

Re: [R] To Add a variable from Df1 to Df2 which have a same common variable

2014-09-19 Thread Arnaud Michel
Thank you to Marc Schwartz, Rui Barrada and Sarah Goslee Michel Le 19/09/2014 19:46, Marc Schwartz a écrit : On Sep 19, 2014, at 12:15 PM, Arnaud Michel wrote: Hello I have the two dataframes Df1 and Df2 which have the common variable AgeSexeCadNCad I would like to add the new variable Df2

[R] To Add a variable from Df1 to Df2 which have a same common variable

2014-09-19 Thread Arnaud Michel
Hello I have the two dataframes Df1 and Df2 which have the common variable AgeSexeCadNCad I would like to add the new variable Df2$Pourcent which correspond at the value of Df1$AgeSexeCadNCad. Thank you for your help. Michel Df1 <- structure(list(AgeSexeCadNCad = structure(1:36, .Label =

Re: [R] Plotrix and twoord.plot with date on x-axe

2014-07-26 Thread Arnaud Michel
Perfect Jim, It's fine ! Thank you Michel Le 26/07/2014 12:16, Jim Lemon a écrit : On Sat, 26 Jul 2014 09:36:49 AM Arnaud Michel wrote: Hello With package plotrix and twoord.plot function, I would like to put the labels of the ticks values of x-axe which are date ( c("2006 Jan&q

Re: [R] Plotrix and twoord.plot with date on x-axe

2014-07-26 Thread Arnaud Michel
Perfect Jim, It's fine ! Michel Le 26/07/2014 12:16, Jim Lemon a écrit : On Sat, 26 Jul 2014 09:36:49 AM Arnaud Michel wrote: Hello With package plotrix and twoord.plot function, I would like to put the labels of the ticks values of x-axe which are date ( c("2006 Jan", "

[R] Plotrix and twoord.plot with date on x-axe

2014-07-26 Thread Arnaud Michel
9-01", "2011-10-01", "2011-11-01", "2011-12-01", "2012-01-01", "2012-02-01", "2012-03-01", "2012-04-01", "2012-05-01", "2012-06-01", "2012-07-01", "2012-08-01", "2012-09-01"

[R] To obtain a graph by geom_bar or other

2014-03-05 Thread Michel ARNAUD
), rep("T3", 40), rep("T4", 10)) , stringsAsFactors=FALSE) Is it possible to build with ggplot the same graph obtained by graphics packages (see the joined file) ? I tried by using geom_bar(position="dodge") but it is not correct. Thank you for your help Michel _

[R] To map population of European countries from Eurostat

2014-02-06 Thread Arnaud Michel
") map.df.l$variable <- factor(map.df.l$variable) map.df.l$variable <- as.numeric(levels(map.df.l$variable))[map.df.l$variable] # And finally the plot using ggplot2 #Map shows proportion of materially deprived households at the NUTS2 level. #Grey color indicates

[R] to modify a dataframe

2014-01-01 Thread Arnaud Michel
uot;, "Pays2", "Pays3", "Pays4", "Pays5"), row.names = c(NA, -9L), class = "data.frame") The purpose is to transform df1 it df2 by giving for every group of lines A, B and C the value 1 if there is at least a value equal to 1 or a value 0 if there

[R] to replace the for loop

2013-12-13 Thread Arnaud Michel
Hello I would like to replace the for loop this below T <- as.matrix(T) for(i in 1: nrow(TEMP)){ for(j in 1: nrow(TEMP)){if (i <= j) T[i, j] <- 0 }} I don't find the function in the doc. Thanks in advance for your help. -- Michel ARNAUD Chargé de mission auprès du DRH DGDRD-Drh

[R] To transform a vector of qualitatives values into a dataframe of quantitatives values

2013-12-11 Thread Arnaud Michel
Hi From the vector X <- c(A, A, B, C, B, A, C) I would like to build the Dataframe : data.frame( A=c(1,1,0,0,0,1,0), B=c(0,0,1,0,1,0,0), C=c(0,0,0,1,0,0,1)) Any ideas ? -- Michel ARNAUD Chargé de mission auprès du DRH DGDRD-Drh - TA 174/04 Av Agropolis 34398 Montpellier cedex 5

Re: [R] To transform a vector

2013-12-08 Thread Arnaud Michel
Thank you Michel Le 09/12/2013 08:14, Berend Hasselman a écrit : On 09-12-2013, at 08:04, Arnaud Michel wrote: Dear R Users I have the vector X <- c( 6 , 4 ,12 , 3) I would like to build a new vector by to transform it into Y <- c(rep(X[1], X[1]), rep(X[2], X[2]), rep(X[3], X[3]), r

[R] To transform a vector

2013-12-08 Thread Arnaud Michel
Dear R Users I have the vector X <- c( 6 , 4 ,12 , 3) I would like to build a new vector by to transform it into Y <- c(rep(X[1], X[1]), rep(X[2], X[2]), rep(X[3], X[3]), rep(X[4], X[4])) Have you a more elegant answer ? PS : Sorry for this basic question -- Michel ARNAUD Chargé de m

Re: [R] To transform an adjacency matrix

2013-11-20 Thread Arnaud Michel
Thank you also for your help Michel Le 20/11/2013 19:04, Dennis Murphy a écrit : Hi: which(m == 1L, arr.ind = TRUE) Dennis On Wed, Nov 20, 2013 at 2:28 AM, Arnaud Michel wrote: Hi I have the following problem I would like to build, from a matrix filled with 0 and with 1, a matrix or a

Re: [R] To transform an adjacency matrix

2013-11-20 Thread Arnaud Michel
Thank you Pascal Its fine Michel Le 20/11/2013 11:55, Pascal Oettli a écrit : Hello, One approach is: m <- structure(c(0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0), .Dim = c(5L, 5L)) out <- which(m==1, arr.ind=TRUE) out[order(out[,1]),] Regards, Pascal

[R] To transform an adjacency matrix

2013-11-20 Thread Arnaud Michel
, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0), .Dim = c(5L, 5L)) Result 1 5 2 3 2 4 4 1 4 3 Thank you for your help -- Michel ARNAUD Chargé de mission auprès du DRH DGDRD-Drh - TA 174/04 Av Agropolis 34398 Montpellier cedex 5 tel : 04.67.61.75.38 fax : 04.67.61.57.87 port

[R] add points on an existant ggplot from another dataframe

2013-10-14 Thread Arnaud Michel
y=2, add=TRUE, plot.points=FALSE, center.cex=0, col=2) XH and XF are two matrix with 2 columns and 52 rows Thank you for your help -- Michel ARNAUD Chargé de mission auprès du DRH DGDRD-Drh - TA 174/04 Av Agropolis 34398 Montpellier cedex 5 tel : 04.67.61.75.38 fax : 04.67.61.57.87 port: 06.

Re: [R] ggplot2 : to change the title of legend

2013-10-11 Thread Arnaud Michel
OK It is right Thank you Petr Michel Le 11/10/2013 14:58, PIKAL Petr a écrit : Hi I usually use scale something like scale_fill_discrete(name = "Fancy Title") shall do the trick Regards Petr -Original Message- From: r-help-boun...@r-project.org [mailto:r-help

[R] ggplot2 : to change the title of legend

2013-10-11 Thread Arnaud Michel
() + geom_boxplot(aes(fill = Recrutement)) + labs(title = "Age", x="catégorie", y="Age") + theme(legend.position = c(0.1,0.9), legend.background = element_rect(colour = "black")) p any idea ? -- Michel ARNAUD Chargé de mission auprès du DRH DGDRD-D

[R] no answer to the following question

2013-09-24 Thread Michel
;mpfrMatrix" the same as operations M1%*%M2 scale(M1,TRUE,FALSE) Sorry but I'm a newbe Thanks in advance Michel But no body ... may be my question appear too simple

Re: [R] Compare two subsequent rows based on specific values of a string

2013-09-20 Thread Michel
Thanks I'm lookin for yur example -Message d'origine- De : r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] De la part de arun Envoyé : vendredi 20 septembre 2013 18:11 À : R help Objet : Re: [R] Compare two subsequent rows based on specific values of a string Hi, May be

[R] Rmpfr question

2013-09-20 Thread Michel
a "mpfrMatrix". Is it possible to use with "mpfrMatrix" the same as operations M1%*%M2 scale(M1,TRUE,FALSE) Sorry but I'm a newbe Thanks in advance Michel [[alternative HTML version deleted]] __ R-help@r-

Re: [R] delete some lines of a dataframe

2013-09-17 Thread Arnaud Michel
Merci Arun Michel Le 17/09/2013 22:41, arun a écrit : Hi Arnaud, You could also try: indx<- Df1$Mat[-1]==Df1$Mat[-nrow(Df1)] indx1<-c(indx,FALSE) indx2<-c(FALSE,indx) Df1[indx1,] Df1[indx2,] A.K. From: arun To: Arnaud Michel Cc: R help Sent

Re: [R] delete some lines of a dataframe

2013-09-17 Thread Arnaud Michel
Thank you Arun but the values of other columns may be different !!! Michel Le 17/09/2013 20:56, arun a écrit : Hi, Try: Df1[duplicated(Df1),] Df1[duplicated(Df1,fromLast=TRUE),] A.K. - Original Message - From: Arnaud Michel To: R help Cc: Sent: Tuesday, September 17, 2013 2:14 PM

[R] delete some lines of a dataframe

2013-09-17 Thread Arnaud Michel
at Prenom Sexe DateNais 208 141 Pierre Masculin 23/08/1946 233 157 Jean-Claude Masculin 11/08/1945 289 188 Jean-Louis Masculin 09/04/1948 374 232Philippe Masculin 01/05/1946 413 253 Christophe Masculin 11/02/1951 414 253 Christophe Masculin 11/02/1951 416 254 Dominique Masculin 21/10

Re: [R] Change the color of the line inside of the function lines

2013-09-16 Thread Arnaud Michel
Thanks Pascal and Tsjerk Michel Le 16/09/2013 09:42, Pascal Oettli a écrit : Hi, Maybe the following might help you: > s <- seq(length(xx)-1) > plot(xx, yy, type="n") > segments(xx[s], yy[s], xx[s+1], yy[s], col=zz, lwd=2) > segments(xx[s+1], yy[s], xx[s+1], yy[s

Re: [R] Change the color of the line inside of the function lines

2013-09-16 Thread Arnaud Michel
Hi Tsjerk Thank you but the color always remains black ! I would want that the color changes on the same graph (color = 3 on the 4 first steps, col = 4 on 5 following steps Michel Le 16/09/2013 09:01, Tsjerk Wassenaar a écrit : > Hi Michel, > > lines(xx,yy,col=zz-2,type="s&qu

[R] Change the color of the line inside of the function lines

2013-09-15 Thread Arnaud Michel
4 ; col =3 if zz= 5 ; col =4 if zz= 6) Thank you for your help -- Michel ARNAUD Chargé de mission auprès du DRH DGDRD-Drh - TA 174/04 Av Agropolis 34398 Montpellier cedex 5 tel : 04.67.61.75.38 fax : 04.67.61.57.87 port: 06.47.43.55.31 __

[R] to delete lines by means of a vector

2013-09-10 Thread Arnaud Michel
;Nicole", "Nicole", "Jean", "Jean", "Jean", "Jean", "Jean", "Ginette", "Ginette", "Ginette", "Ginette", "Ginette", "Hélène", "Hélène", "Hélène", "Hélène&

Re: [R] to avoid a do loop

2013-09-08 Thread Arnaud Michel
t, sprintf("%02d", df1$Ech), sep = ".") ) # user system elapsed # 0.170.000.17 # R Lancelot system.time(df1$CatEch3 <- paste(df1$Cat, formatC(df1$Ech, flag = "0", width = max(nchar(df1$Ech))), sep = ".")) # user system elapsed # 0.340

Re: [R] to avoid a do loop

2013-09-08 Thread Arnaud Michel
Thanks to all three for your fast answer Michel Le 08/09/2013 18:41, Renaud Lancelot a écrit : > paste(df1$Cat, > formatC(df1$Ech, flag = "0", width = max(nchar(df1$Ech))), > sep = ".") > > > > 2013/9/8 Arnaud Michel <mailto:michel.arn...@c

[R] to avoid a do loop

2013-09-08 Thread Arnaud Michel
;, "8.10", "9.05", "9.06", "9.07", "9.07", "9.07", "9.07", "9.07", "6.07", "6.08", "6.09", "6.10", "6.11", "6.11", "6.11", "7.04", "7.05

Re: [R] To represent on the same plot the relation (y1, x) and (y2, x)

2013-08-31 Thread Arnaud Michel
Thank you Arun But have you a solution if y1 and y2 have not the same unit (ex : the unit of y1 is meter and the unit of y2 is Kg) and if I want the axe of y1 at the left of the plot and the axe of y2 at the rigth of the plot Michel Le 31/08/2013 21:27, arun a écrit : Hi, May be this

Re: [R] To represent on the same plot the relation (y1, x) and (y2, x)

2013-08-31 Thread Arnaud Michel
Thank you Arun Michel Le 01/09/2013 07:36, arun a écrit : Hi Arnaud, No problem. Try, x<- 1:10 set.seed(28) y1<- rnorm(10) set.seed(485) y2<- rnorm(10,25) library(plotrix) twoord.plot(x,y1,y2,lylim=c(-2,2),rylim=c(20,30),ylab="y1",rylab="y2",lcol=2,rcol

[R] To represent on the same plot the relation (y1, x) and (y2, x)

2013-08-31 Thread Arnaud Michel
Hello, I have 3 vectors x, y1 and y2 I would like to represent on the same plot the two graph (y1, x) and (y2, x). Is it possible with ggplot ? other package ? Thanks for your help -- Michel ARNAUD Chargé de mission auprès du DRH DGDRD-Drh - TA 174/04 Av Agropolis 34398 Montpellier cedex 5 tel

Re: [R] Change values in a dateframe-Speed TEST

2013-07-25 Thread Arnaud Michel
Le 25/07/2013 08:50, Berend Hasselman a écrit : On 25-07-2013, at 08:35, Arnaud Michel wrote: But I just noticed that the two solutions are not comparable : the change concern only Nom and Prenom (solution Berend) and not also Sexe or Date.de.naissance orother variables (solution Arun) that

Re: [R] Change values in a dateframe-Speed TEST

2013-07-24 Thread Arnaud Michel
But I just noticed that the two solutions are not comparable : the change concern only Nom and Prenom (solution Berend) and not also Sexe or Date.de.naissance orother variables (solution Arun) that can changed. But my question was badly put. Michel Le 25/07/2013 08:06, Arnaud Michel a écrit

Re: [R] Change values in a dateframe-Speed TEST

2013-07-24 Thread Arnaud Michel
ot;Prénom"),drop=TRUE];x} user system elapsed 14.030.00 14.04 system.time(droplevels(PaysContrat1[with(PaysContrat1,ave(seq_along(Matricule),Matricule,FUN=min)) ,] )) user system elapsed 0.2 0.0 0.2 Michel Le 24/07/2013 15:29, arun a écrit : Hi Michel, Yo

Re: [R] Change values in a dateframe

2013-07-24 Thread Arnaud Michel
Hi Arun, Merci à toi Bien amicalement Michel Le 24/07/2013 15:29, arun a écrit : Hi Michel, You could try: df1New<-droplevels(TEST[with(TEST,ave(seq_along(Matricule),Matricule,FUN=min)),]) row.names(df1New)<-1:nrow(df1New) df2New<-droplevels(TEST[with(TEST,ave(seq_along(Matricule),

Re: [R] Change values in a dateframe

2013-07-24 Thread Arnaud Michel
Thank you Berend It is exactly what I wanted. Michel Le 24/07/2013 09:48, Berend Hasselman a écrit : On 24-07-2013, at 08:39, Arnaud Michel wrote: Hello I have the following problem : The dataframe TEST has multiple lines for a same person because : there are differents values of Nom or

[R] Change values in a dateframe

2013-07-23 Thread Arnaud Michel
, class = "factor"), Prenom = structure(c(8L, 3L, 4L, 5L, 1L, 2L, 2L, 9L, 6L, 7L, 7L), .Label = c("Edgar", "Elodie", "Jeanine", "Jeannine", "Michel", "Michele", "Michèle", "Michelle", "Victor" ), clas

[R] Coxme Package Error Message Help

2013-07-23 Thread Michel Kohl
e convergence/signularity criteria in the program. Note: it is much easier to use coxph(survobj ~ therapy + ReceptorA + ReceptorB, data=sample.data) than to put "sample.data$" in front of every variable name; and easier to read as well. Terry Therneau (author of coxph function)

Re: [R] Calculate interaction for a big dataframe

2013-07-22 Thread Arnaud Michel
s you directly factor, paste gives you character vector, but it may be convenient too for your purpose. Regards Petr -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Arnaud Michel Sent: Monday, July 22, 2013 10:57 AM To: R help Subjec

[R] Calculate interaction for a big dataframe

2013-07-22 Thread Arnaud Michel
me that yes. Thanks for your help -- Michel ARNAUD Chargé de mission auprès du DRH DGDRD-Drh - TA 174/04 Av Agropolis 34398 Montpellier cedex 5 tel : 04.67.61.75.38 fax : 04.67.61.57.87 port: 06.47.43.55.31 __ R-help@r-project.org mailing list https

Re: [R] simplify a dataframe

2013-07-17 Thread Arnaud Michel
Thanks Arun and Rui for your helps Michel Le 17/07/2013 22:20, arun a écrit : #or library(plyr) res<-ddply(df1,.(INDX),summarize,Debut=head(Debut,1),Fin=tail(Fin,1)) res$INDX<-factor(res$INDX,levels=unique(df1$INDX)) res[order(res$INDX),-1] # DebutFin #3 24/01/1995 31/12/1997

Re: [R] simplify a dataframe

2013-07-17 Thread Arnaud Michel
1/12/19976 4 02/02/1995 27/02/1995 11 5 28/02/1995 28/02/1995 11 6 01/03/1995 12/03/1995 11 7 13/03/1995 30/06/19954 8 01/01/1996 30/01/19965 9 31/01/1996 31/01/19965 DebFin 1 24/01/1995 31/12/1997 2 02/02/1995 12/03/1995 3 13/03/1995 30/06/1995 4 01/0

[R] simplify a dataframe

2013-07-17 Thread Arnaud Michel
99", "16/01/2000", "28/02/2000", "29/02/2000") INDX <- c(6,6,6,11,11,11, 4,5,5) Deb <- c("*24/01/1995*", "*02/02/1995*", "*13/03/1995*", "*01/01/1996*") Fi n <- c("

Re: [R] Question on plotting with googleVis

2013-07-17 Thread Arnaud Michel
Hi You can do a rotation and use gvisColumnChart instead gvisBarChart plot(gvisColumnChart(MyData, xvar="Names1", yvar=c("Values1", "Values2"),options=list(width=2500,height=1000))) Michel Le 17/07/2013 15:57, Christofer Bogaso a écrit : Hello Arnaud, Thank y

Re: [R] Question on plotting with googleVis

2013-07-16 Thread Arnaud Michel
t area itself if you hover your mouse. Thanks and regards, [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide

Re: [R] simplify a dataframe

2013-07-14 Thread Arnaud Michel
Super !!! Thank you very much Arun Michel Le 15/07/2013 03:47, arun a écrit : HI Michel, This gives the same order as that of df2. df1$contrat[grep("^CDD",df1$contrat)]<- "CDD détaché ext. Cirad" df1[48,8]<- "31/12/2013" indx<-as.numeric(interaction(df1

Re: [R] simplify a dataframe

2013-07-14 Thread Arnaud Michel
,2 and if there is no interruption of time for the lines i and i+1 then df1$F[i] + 1 == df1$D[i+1] Michel Le 14/07/2013 18:17, Arnaud Michel a écrit : > Hi, > Excuse me for the indistinctness > Le 13/07/2013 17:18, arun a écrit : >> Hi, >> "when the value of Debut of

Re: [R] simplify a dataframe

2013-07-14 Thread Arnaud Michel
6* Thank you for your help Michel >Also, in your example dataset: > > df1$contrat[grep("^CDD",df1$contrat)] > #[1] "CDD détaché ext. Cirad" "CDD détaché ext. Cirad" "CDD détaché ext. > Cirad" > #[4] "CDD détaché ext. Cirad"

[R] simplify a dataframe

2013-07-12 Thread Arnaud Michel
0", "29/02/2000", "26/01/1995", "01/07/1996", "16/09/1997", "01/01/1998", "01/07/1998", "04/11/1999", "01/01/2001", "01/04/2001", "31/08/2001", "01/09/2001", "02/09/2001", "01/12/20

[R] To transform a dataframe

2013-06-29 Thread Arnaud Michel
12/2010", "31/12/4712"), class = "factor"), Cat8 = c(8L, 8L, 8L, NA ), Début8 = structure(c(2L, 3L, 4L, 1L), .Label = c("", "01/01/2011", "01/07/1996", "01/11/2002"), class = "factor"), Fin8 = structure(c(3L, 3L,

Re: [R] a question to transform a dataframe empty 0/1

2013-06-20 Thread Arnaud Michel
Thank you arun ! I don't know the library reshape2 Michel Le 20/06/2013 19:55, arun a écrit : Hi, Not sure if you wanted the entries with "0". library(reshape2) dfMelt<-melt(df,id.var=c("Country","Iso")) #subset those with "1" dfNew<- sub

[R] a question to transform a dataframe empty 0/1

2013-06-20 Thread Arnaud Michel
quot;,"BF", "ZA","TZ","KE","ET") , Abaco=c(1,0,1,1,0,1,0,0,0,0,1,1,0,0,0,0) , Adaptclone= c(0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0) ) There is a lot of column like Abaco, Adaptclone,... I would like to built a dataframe wich transforms the initial datafr

[R] to build a data.frame

2013-06-19 Thread Arnaud Michel
"NG","KE","BF", "ZA","TZ","KE","ET")) I would like to build a other dataframe with name Country where column 1 is country, the column 2 is number of project (in the country) the column 3 is the code Iso (wich correspond with

[R] transform 3 numeric vectors empty of 0/1

2013-06-18 Thread Arnaud Michel
vectors (Ex : ABC, BC, AC, AB,...) Any idea ? Thank you for your help -- Michel ARNAUD __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and pr

[R] Trying to get the 'Digitize' package

2013-06-14 Thread Jean-Michel Fortin
Dear R users, I'm trying to get the 'Digitize' package but it has been removed from the CRAN repository. I tried to download the .tar.gz file from the archive but I haven't been able to install it. Anyone has a clue on how I could proceed to access this package? Thank

[R] a title on the map (function gvisGeoChart package googleVis )

2013-06-11 Thread Arnaud Michel
t;, displayMode="regions", height=347*1.5, width= 556*1.5 )) plot(G1) Thank you -- Michel ARNAUD Chargé de mission auprès du DRH DGDRD-Drh - TA 174/04 Av Agropolis 34398 Montpellier cedex 5 tel : 04.67.61.75.38 fax : 04.67.61.57.87 port: 06.47.43.55.31

Re: [R] 'breackpoints' (package 'strucchange'): 2 blocking error messages when using for multiple regression model testing

2011-07-30 Thread Michel Lutz
o all of this makes sense. Even is it's painful for me, because I don't know what happened in the system... Time for me to investigate. Thank you very very much, Achim. Enjoy your week-end. Michel On Sat, Jul 30, 2011 at 11:34 AM, Achim Zeileis wrote: > On Sat, 30 Jul 2011, Michel

Re: [R] 'breackpoints' (package 'strucchange'): 2 blocking error messages when using for multiple regression model testing

2011-07-30 Thread Michel Lutz
don't know what to do. Warm thanks, have a nice week-end. Michel On Sat, Jul 30, 2011 at 1:28 AM, Achim Zeileis wrote: > On Fri, 29 Jul 2011, Michel Lutz wrote: > > Achim, >> >> Thank you so much for this prompt answer. Really appreciated ! >> >> Anyway,

[R] 'breackpoints' (package 'strucchange'): 2 blocking error messages when using for multiple regression model testing

2011-07-29 Thread Michel Lutz
unction(x, ...) vcovHC(x, type = "HC", ...)) plot(stab.model) bp.mes <- breakpoints(model.mes, data = D) Fstats works, by breakpoints tells me: Erreur dans chol2inv(qr.R(fm$qr)) : l'élément (5, 5) est nul, donc l'inverse ne peut être calculé I tried and tried again, no c

Re: [R] 'breackpoints' (package 'strucchange'): 2 blocking error messages when using for multiple regression model testing

2011-07-29 Thread Michel Lutz
ch a chol2inv issue? No missing values in my data, I really don't know what to do. * *But the tests need to be adjusted* Are such adjustements implement in breakpoints? (no mention in the "durab" example, basic function settings are used). In advance, thank you very much, and sorry for

[R] 'breackpoints' (package 'strucchange'): 2 blocking error messages when using for multiple regression model testing

2011-07-29 Thread Michel Lutz
E / FALSE est requis I really can't understand what is going wrong. What 'tol' stands for? Seems it is not a 'breackpoints' attributes. Any help would greatly appreciated. Many thanks in advance, Regards, Michel [[alternative HTML version deleted]]

[R] Fwd: [R-sig-hpc] Holtman's levelplot ?

2010-08-24 Thread Michel Lutz
m even thinking I should build my input csv file differently, but I am not sure how to do... Is someone able to help me ? Thank you very much ! REgards, Michel -- Forwarded message -- From: Red Roo Date: Tue, Aug 24, 2010 at 3:46 PM Subject: Re: [R-sig-hpc] Holtman's le

[R] RCurl : limit of downloaded Urls ?

2010-01-31 Thread Alexis-Michel Mugabushaka
Dear Rexperts, I am using R to query google. I am getting different results (in size) for manual queries and queries sent through "getForm" of RCurl. It seems that RCurl limits the size of the text retrieved (the maximum I could get is around 32 k bits). Any idea how to get around this ? Than

[R] discrepancies between stata and r for a cox regression

2009-05-18 Thread Michel Boutsen
with discrepancies but with no explanations Thanks in advance Michel Boutsen Brussel's University Department of Biostatistics __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting gui

[R] discrepancies between stata and r for a cox regression

2009-05-18 Thread Michel Boutsen
base without any problem What would be the problem??? I changed of pc and versions of R (2.81 & 2.9.0) without any change. The means are the same for the two packages. I saw a few posts with discrepancies but not with the same database Thanks in advance Michel Boutsen Brussel's Univer

[R] 3 curves / 1 plot

2008-10-02 Thread Michel PETITJEAN
very much. Michel Petitjean, DSV/iBiTec-S/SB2SM (CNRS URA 2096), CEA Saclay, bat. 528, 91191 Gif-sur-Yvette Cedex, France. Phone: +331 6908 4006 / Fax: +331 6908 4007 E-mail: [EMAIL PROTECTED] http://petitjeanmichel.free.fr/itoweb.petitjean.html __ R-help

[R] Random Forest

2008-06-06 Thread Bertrand Pub Michel
Hello Is there exists a package for multivariate random forest, namely for multivariate response data ? It seems to be impossible with the "randomForest" function and I did not find any information about this in the help pages ... Thank you for your help Bertrand ___

[R] Random Forest and for multivariate response data

2008-06-06 Thread Bertrand Pub Michel
Hello Is there exists a package for multivariate random forest, namely for multivariate response data ? It seems to be impossible with the "randomForest" function and I did not find any information about this in the help pages ... Thank you for your help Bertrand ___

[R] Random Forest

2008-06-06 Thread Bertrand Pub Michel
Hello Is there exists a package for multivariate random forest, namely for multivariate response data ? It seems to be impossible with the "randomForest" function and I did not find any information about this in the help pages ... Thank you for your help Bertrand ___

[R] gee, error=104

2007-10-10 Thread Michel Chavance
is a code=104 error ? Thanks Michel __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained