191_management_of_datesR proposes a special data type  for dates. It is important to use it since it make the creation of charts lot easier. Let’s illustrate it. This example is inspired from this webpage that provides lot of explanations.

First we create data. With the str function you can check the type of each column. Dates are recognized as factor.





We can plot it but the results we observe is quite disapointing.



If we switch to a date format and add a little bit of pimpimg, it becomes a better chart!

Not what you are looking for ? Make a new search !


Leave a Reply

Be the First to Comment!

Notify of