Re: [R] Selecting 1st and last dates from a set of dates

2016-07-15 Thread William Dunlap via R-help
t > not quite. > Regards, > Gaurang Mehta > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of William > Dunlap via R-help > Sent: 14 July 2016 17:32 > To: Nordlund, Dan (DSHS/RDA) > Cc: R-help Mailing List > Subject: Re: [

Re: [R] Selecting 1st and last dates from a set of dates

2016-07-14 Thread Nordlund, Dan (DSHS/RDA)
rt Administration Washington State Department of Social and Health Services From: William Dunlap [mailto:wdun...@tibco.com] Sent: Thursday, July 14, 2016 9:32 AM To: Nordlund, Dan (DSHS/RDA) Cc: R-help Mailing List Subject: Re: [R] Selecting 1st and last dates from a set of dates I did not use

Re: [R] Selecting 1st and last dates from a set of dates

2016-07-14 Thread William Dunlap via R-help
> > To: William Dunlap > > Cc: R-help Mailing List > > Subject: Re: [R] Selecting 1st and last dates from a set of dates > > > > Thanks William. > > This works. Thanks again. > > > > From: William Dunlap [mailto:wdun...@tibco.com] > > Sent: 14 July

Re: [R] Selecting 1st and last dates from a set of dates

2016-07-14 Thread Mehta, Gaurang
Thanks. That is a slick one. -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Nordlund, Dan (DSHS/RDA) Sent: 14 July 2016 17:22 To: R-help Mailing List Subject: Re: [R] Selecting 1st and last dates from a set of dates Using William Dunlap's data, here

Re: [R] Selecting 1st and last dates from a set of dates

2016-07-14 Thread Nordlund, Dan (DSHS/RDA)
R] Selecting 1st and last dates from a set of dates > > Thanks William. > This works. Thanks again. > > From: William Dunlap [mailto:wdun...@tibco.com] > Sent: 14 July 2016 16:42 > To: Mehta, Gaurang > Cc: Jeff Newmiller; R-help Mailing List > Subject: Re: [R] Select

Re: [R] Selecting 1st and last dates from a set of dates

2016-07-14 Thread Mehta, Gaurang
Thanks William. This works. Thanks again. From: William Dunlap [mailto:wdun...@tibco.com] Sent: 14 July 2016 16:42 To: Mehta, Gaurang Cc: Jeff Newmiller; R-help Mailing List Subject: Re: [R] Selecting 1st and last dates from a set of dates Does the following example help? isFirstInRun

Re: [R] Selecting 1st and last dates from a set of dates

2016-07-14 Thread William Dunlap via R-help
9 7 8 > 03/02/1997 9 6 8 > > > I want to select the data on the first date it can be 1st , 2nd or 3rd or > any and last date it can be 31st, 30th and /or29th. I don’t need time. > It would be great if you could help. > Regards, > Gaurang M

Re: [R] Selecting 1st and last dates from a set of dates

2016-07-14 Thread Mehta, Gaurang
] Sent: 14 July 2016 16:03 To: Mehta, Gaurang; R-help Mailing List Subject: Re: [R] Selecting 1st and last dates from a set of dates I suspect the answer to your question (is there a function...) is almost certainly yes, but your question is too vague to be sure. 1) Data frames and matrices

Re: [R] Selecting 1st and last dates from a set of dates

2016-07-14 Thread Jeff Newmiller
I suspect the answer to your question (is there a function...) is almost certainly yes, but your question is too vague to be sure. 1) Data frames and matrices are different in important ways... it is highly unlikely that matrices would be appropriate for date data. 2) Do you mean "select

[R] Selecting 1st and last dates from a set of dates

2016-07-14 Thread Mehta, Gaurang
Hi Team, I am struggling to select the first date and last date of the month where there is data in a dataframe/matrix. Is there any r function that can help to easily select data on the first and last day of the month from the given set of dates and values. Thanks for the help in advance.