更新时间:2021-08-05 17:40:18
封面
版权页
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. Data Types
Assignment
The workspace
Discrete data types
Summary
Chapter 2. Organizing Data
Basic data structures
Operations on data structures
Chapter 3. Saving Data and Printing Results
File and directory information
Entering data
Printing results and saving data
Primitive input/output
Network options
Chapter 4. Calculating Probabilities and Random Numbers
Overview
Chapter 5. Character and String Operations
Basic string operations
Six focused tasks
Regular expressions
Chapter 6. Converting and Defining Time Variables
Introduction and assumptions
Converting strings to time data types
Chapter 7. Basic Programming
Conditional execution
Chapter 8. S3 Classes
Defining classes and methods
Defining objects and inheritance
Encapsulation
A final note
Chapter 9. S4 Classes
Introducing the Ant class
Defining an S4 class
Defining methods for an S4 class
Inheritance
Miscellaneous notes
Chapter 10. Case Study – Course Grades
The Course class
The assignment classes
Defining indexing operations
Redefining existing functions
Redefining arithmetic operations
Chapter 11. Case Study – Simulation
The simulation classes
The Monte-Carlo class
Examples
Appendix A. Package Management
Index