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

2013-07-25 Thread arun
#   0.132   0.000   0.133 identical(res1,as.data.frame(dtNew)) #[1] TRUE A.K. ----- Original Message - From: Arnaud Michel To: Berend Hasselman Cc: R help Sent: Thursday, July 25, 2013 3:59 AM Subject: Re: [R] Change values in a dateframe-Speed TEST Le 25/07/2013 08:50, Berend Hasselm

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

2013-07-25 Thread Arnaud Michel
K. ----- Original Message - From: Arnaud Michel To: R help Cc: Sent: Wednesday, July 24, 2013 2:39 AM Subject: [R] Change values in a dateframe Hello I have the following problem : The dataframe TEST has multiple lines for a same person because : there are differents values of Nom or differents

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

2013-07-24 Thread Berend Hasselman
atricule),Matricule,FUN=min)),]) >>> >>> row.names(df1New)<-1:nrow(df1New) >>> df2New<-droplevels(TEST[with(TEST,ave(seq_along(Matricule),Matricule,FUN=max)),]) >>> >>> row.names(df2New)<-1:nrow(df2New) >>> identical(df1New,df1) >&g

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

2013-07-24 Thread Arnaud Michel
ew,df1) #[1] TRUE identical(df2New,df2) #[1] TRUE A.K. - Original Message - From: Arnaud Michel To: R help Cc: Sent: Wednesday, July 24, 2013 2:39 AM Subject: [R] Change values in a dateframe Hello I have the following problem : The dataframe TEST has multiple lines for a same person because : the

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

2013-07-24 Thread Arnaud Michel
identical(df2New,df2) #[1] TRUE A.K. - Original Message - From: Arnaud Michel To: R help Cc: Sent: Wednesday, July 24, 2013 2:39 AM Subject: [R] Change values in a dateframe Hello I have the following problem : The dataframe TEST has multiple lines for a same person because : there are

Re: [R] Change values in a dateframe

2013-07-24 Thread arun
1) #[1] TRUE  identical(df2New,df2) #[1] TRUE A.K. - Original Message - From: Arnaud Michel To: R help Cc: Sent: Wednesday, July 24, 2013 2:39 AM Subject: [R] Change values in a dateframe Hello I have the following problem : The dataframe TEST has multiple lines for a same person because

Re: [R] Change values in a dateframe

2013-07-24 Thread Arnaud Michel
Matricule,FUN=max)),]) row.names(df2New)<-1:nrow(df2New) identical(df1New,df1) #[1] TRUE identical(df2New,df2) #[1] TRUE A.K. - Original Message - From: Arnaud Michel To: R help Cc: Sent: Wednesday, July 24, 2013 2:39 AM Subject: [R] Change values in a dateframe Hello I have t

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 diffe

Re: [R] Change values in a dateframe

2013-07-24 Thread Berend Hasselman
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 differents values of Prenom > but the values of Matricule or Sexe or Date.de.naissance are the sam

[R] Change values in a dateframe

2013-07-23 Thread Arnaud Michel
Hello I have the following problem : The dataframe TEST has multiple lines for a same person because : there are differents values of Nom or differents values of Prenom but the values of Matricule or Sexe or Date.de.naissance are the same. TEST <- structure(list(Matricule = c(66L, 67L, 67L, 68L,