Dear Sir,
Thanks a lot for your valuable input and guidance.
Regards
Katherine
--- On Mon, 15/4/13, Jeff Newmiller wrote:
From: Jeff Newmiller
Subject: Re: [R] Sorting data.frame and again sorting within data.frame
To: "David Winsemius" , "Katherine Gobin"
Cc: r-hel
On Apr 15, 2013, at 9:33 AM, Jeff Newmiller wrote:
> Yes, that would be because she converted to Date on the fly in her example,
> and so apparently did not need this reminder.
I apologize, Iobviously missed that. So the answer was simply to put a minus
sign in front of the as.Date() expressi
Yes, that would be because she converted to Date on the fly in her example, and
so apparently did not need this reminder.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#
On Apr 14, 2013, at 11:01 PM, Katherine Gobin wrote:
> Dear R forum,
>
> I have a data.frame as defied below -
>
> df = data.frame(names = c("C", "A", "A", "B", "C", "B", "A", "B", "C"), dates
> = c("4/15/2013", "4/13/2013", "4/15/2013", "4/13/2013", "4/13/2013",
> "4/15/2013", "4/14/2013",
/2013 29
#5 C 4/13/2013 11
A.K.
- Original Message -
From: arun
To: Katherine Gobin
Cc: R help
Sent: Monday, April 15, 2013 8:57 AM
Subject: Re: [R] Sorting data.frame and again sorting within data.frame
library(plyr)
arrange(df,names,desc(dates))
# names dates values
#1
/2013 11
A.K.
- Original Message -
From: Katherine Gobin
To: r-help@r-project.org
Cc:
Sent: Monday, April 15, 2013 2:01 AM
Subject: [R] Sorting data.frame and again sorting within data.frame
Dear R forum,
I have a data.frame as defied below -
df = data.frame(names = c("C"
The examples in ?order show a method that could be applied if you avoid the
decreasing argument and instead convert the Date to numeric for purposes of
sorting.
---
Jeff NewmillerThe . ..
Dear R forum,
I have a data.frame as defied below -
df = data.frame(names = c("C", "A", "A", "B", "C", "B", "A", "B", "C"), dates =
c("4/15/2013", "4/13/2013", "4/15/2013", "4/13/2013", "4/13/2013", "4/15/2013",
"4/14/2013", "4/14/2013","4/14/2013" ),values = c(10, 31, 31, 17, 11, 34, 102,
47
8 matches
Mail list logo