Re: [R] Query about use of format in strptime

2016-04-11 Thread MacQueen, Don
;. >I am not able to create a sequence of class "POSIXlt" "POSIXt", in order >to merge the two data frames. > >Could you please help me in this? >Thank you again for your attention >Stefano > > > >Da: Jim Lemon

Re: [R] Query about use of format in strptime

2016-04-11 Thread David Winsemius
30 mins")) Do NOT use POSIXlt for dataframe columns. -- David. > > Could you please help me in this? > Thank you again for your attention > Stefano > > > > Da: Jim Lemon [drjimle...@gmail.com] > Inviato: lunedì 11 apri

Re: [R] Query about use of format in strptime

2016-04-11 Thread Stefano Sofia
__ Da: Jim Lemon [drjimle...@gmail.com] Inviato: lunedì 11 aprile 2016 9.47 A: Stefano Sofia Cc: r-help@r-project.org Oggetto: Re: [R] Query about use of format in strptime Hi Stefano, As the help page says: "The default for the format methods is "%Y-%m-%d %H:%M:%S" if a

Re: [R] Query about use of format in strptime

2016-04-11 Thread Enrico Schumann
On Mon, 11 Apr 2016, Stefano Sofia writes: > Dear R-list users, > I need to use strptime because I have to deal with date with hours and > minutes. > I read the manual for strptime and I also looked at many examples, but when I > try to apply it to my code, I always encounter some problems. > I

Re: [R] Query about use of format in strptime

2016-04-11 Thread Jim Lemon
Hi Stefano, As the help page says: "The default for the format methods is "%Y-%m-%d %H:%M:%S" if any element has a time component which is not midnight, and "%Y-%m-%d" otherwise. This is because when the result is printed, it uses the default format. If you want a specified output representation:

[R] Query about use of format in strptime

2016-04-11 Thread Stefano Sofia
Dear R-list users, I need to use strptime because I have to deal with date with hours and minutes. I read the manual for strptime and I also looked at many examples, but when I try to apply it to my code, I always encounter some problems. I try to change the default format, with no success. Why? H