Hi Sarah,
Thanks for getting back to me.Here is an example of my data:SampleData <-
structure(list(id = 1:7, value = c(5813L, 8706L, 4049L, 5877L,?? ? ? ? ? ? ? ? ?
? ? ? ? ? ? ? ? ? ? ? ? ? ?1375L, 2223L, 3423L), date = structure(c(4L, 3L, 2L,
1L, 7L,?? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
? ? ? ? ? ? ? 6L, 5L), .Label = c("05/12/11", "06/05/11",
"07-Dec-11",?? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? "19-Dec-11",
"01/22/2011", "10/19/2011", "31/12/2011"? ? ? ? ?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ),
class = "factor")), .Names = c("id", "value",
"date"), row.names = c(NA,?? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? -7L), class =
"data.frame")SampleData
Thanks for your help:).
?
On Wednesday, July 29, 2015 1:50 PM, Sarah Goslee <sarah.goslee at
gmail.com> wrote:
On Wed, Jul 29, 2015 at 2:45 PM, farnoosh sheikhi via R-help
<r-help at r-project.org> wrote:>? Hi Arun,
> Hope all is well with you. I have a data with a column for date.The date
format is mixed. There are date values with Month/Day/Year format and values
with Day/Month/Year format.I don't know how to unify it.I really appreciate
your help.Thanks.
You sent this to the R-help list, not just to Arun, so I'm assuming
this is an R question. The best way to get help is to provide a sample
of your data using dput() and to clearly specify what you would like
as the result - "unify" is a bit vague. paste(x,
collapse="") could be
considered unification, after all.
Sarah
--
Sarah Goslee
http://www.functionaldiversity.org
[[alternative HTML version deleted]]