Dear bert, arun and philipps,Thanks for your help. It worked perfectly fine for 
me.:D
Eliza

> Date: Thu, 28 Nov 2013 16:09:58 +0100
> From: wev...@web.de
> To: eliza_bo...@hotmail.com; r-help@r-project.org
> Subject: Re: [R] date format
> 
> Hi Eliza,
> 
> # you can use paste to create a new vector:
> date1<-paste( dataframe[,3], dataframe[,2],dataframe[,1], sep="." )
> 
> # you could then turn that into a Date-Time-Class with which you could 
> do calculations
> strptime(date1, format="%d.%m.%Y")
> 
> 
> Am 28.11.2013 14:54, schrieb eliza botto:
> > Dear Users of R,
> > I have a data frame with three column, the first column contains years, the 
> > second one months and third one, the days (cbind(yyyy mm dd)). I want to 
> > combine them so that i have one column with the date format as (dd.mm.yyyy).
> > Is there a way of doing that.
> > Thanks in advance,
> > Eliza                                       
> >     [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > R-help@r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
> 
> 
> -- 
> --------------------
> Philipp Wevers
> wev...@web.de
> Mobil: 015253710061
> fest: 03080921097
> Koloniestraße 126 A
> 13359 Berlin
> wev...@web.de
> 
> 
> ---
> Diese E-Mail ist frei von Viren und Malware, denn der avast! Antivirus Schutz 
> ist aktiv.
> http://www.avast.com
> 
                                          
        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to