封面
版权页
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
Summary
Chapter 3. Saving Data and Printing Results
File and directory information
Entering data
Printing results and saving data
Primitive input/output
Network options
Summary
Chapter 4. Calculating Probabilities and Random Numbers
Overview
Chapter 5. Character and String Operations
Basic string operations
Six focused tasks
Regular expressions
Summary
Chapter 6. Converting and Defining Time Variables
Introduction and assumptions
Converting strings to time data types
Summary
Chapter 7. Basic Programming
Conditional execution
Summary
Chapter 8. S3 Classes
Defining classes and methods
Defining objects and inheritance
Encapsulation
A final note
Summary
Chapter 9. S4 Classes
Introducing the Ant class
Defining an S4 class
Defining methods for an S4 class
Inheritance
Miscellaneous notes
Summary
Chapter 10. Case Study – Course Grades
Overview
The Course class
The assignment classes
Defining indexing operations
Redefining existing functions
Redefining arithmetic operations
Summary
Chapter 11. Case Study – Simulation
The simulation classes
The Monte-Carlo class
Examples
Summary
Appendix A. Package Management
Index
更新时间:2021-08-05 17:40:18