# 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
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
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
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
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
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
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
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
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
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,
10 matches
Mail list logo