Dear Sir,
Thanks a lot for your valuable input and guidance.
Regards
Katherine
--- On Mon, 15/4/13, Jeff Newmiller jdnew...@dcn.davis.ca.us wrote:
From: Jeff Newmiller jdnew...@dcn.davis.ca.us
Subject: Re: [R] Sorting data.frame and again sorting within data.frame
To: David Winsemius dwinsem
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, 29))
df
names dates
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 .
/2013 11
A.K.
- Original Message -
From: Katherine Gobin katherine_go...@yahoo.com
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
/2013 29
#5 C 4/13/2013 11
A.K.
- Original Message -
From: arun smartpink...@yahoo.com
To: Katherine Gobin katherine_go...@yahoo.com
Cc: R help r-help@r-project.org
Sent: Monday, April 15, 2013 8:57 AM
Subject: Re: [R] Sorting data.frame and again sorting within data.frame
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, 4/14/2013,4/14/2013 ),values = c(10,
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...
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()
8 matches
Mail list logo