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.
R Object-oriented Programming
By :
R Object-oriented Programming
By:
Overview of this book
Table of Contents (19 chapters)
R Object-oriented Programming
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Organizing Data
Saving Data and Printing Results
Calculating Probabilities and Random Numbers
Character and String Operations
Converting and Defining Time Variables
Basic Programming
S3 Classes
S4 Classes
Case Study – Course Grades
Case Study – Simulation
Package Management
Index
Customer Reviews