Book Image

R Object-oriented Programming

By : Kelly Black
Book Image

R Object-oriented Programming

By: Kelly Black

Overview of this book

Table of Contents (19 chapters)
R Object-oriented Programming
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
4
Calculating Probabilities and Random Numbers
Package Management
Index

Summary


A broad overview of the options available to convert between strings and the two time data types was given in this chapter. The strptime command is used to convert a string into a POSIXlt variable. The strftime command is used to convert a time data type into a string. Finally, the basic operators used to perform arithmetic operations between two time variables was discussed, with an emphasis on using the difftime command. We also explored the use of the difftime data type.