[R] how to get a date variable from a dataset

2012-08-03 Thread arunkumar1111
Hi

I have a find the class of each variable of the data set which is given as
input. I can able to find the string and the numeric variable. Not able to
find if the variable is date or not

Can any one help me. 




-
Thanks in Advance
Arun
--
View this message in context: 
http://r.789695.n4.nabble.com/how-to-get-a-date-variable-from-a-dataset-tp4639038.html
Sent from the R help mailing list archive at Nabble.com.

__
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.


Re: [R] how to get a date variable from a dataset

2012-08-03 Thread R. Michael Weylandt
Hi arunkumar,

I've asked you many times to work on providing reproducible examples
-- I'll direct you to this page again which describes how to do so:

http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example

without one, there's not much anyone can do, but

inherits(x, Date)

might help.

Michael


On Fri, Aug 3, 2012 at 7:32 AM, arunkumar akpbond...@gmail.com wrote:
 Hi

 I have a find the class of each variable of the data set which is given as
 input. I can able to find the string and the numeric variable. Not able to
 find if the variable is date or not

 Can any one help me.




 -
 Thanks in Advance
 Arun
 --
 View this message in context: 
 http://r.789695.n4.nabble.com/how-to-get-a-date-variable-from-a-dataset-tp4639038.html
 Sent from the R help mailing list archive at Nabble.com.

 __
 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.

__
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.