Amazon cover image
Image from Amazon.com

R Object-oriented Programming [electronic resource].

By: Material type: TextTextSeries: Community experience distilledPublication details: Birmingham : Packt Publishing, 2014.Description: 1 online resource (190 p.)ISBN:
  • 9781783986699
  • 1783986697
Subject(s): Genre/Form: Additional physical formats: Print version:: R Object-oriented ProgrammingDDC classification:
  • 005.1092356
LOC classification:
  • QA76.9.D3
Online resources:
Contents:
Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Data Types; Assignment; The workspace; Discrete data types; Integer; Logical; Character; Factors; Continuous data types; Double; Complex; Special data types; Notes on as and is functions; Summary; Chapter 2: Organizing Data; Basic data structures; Vectors; Lists; Data frames; Tables; Matrices and arrays; Censoring data; Appending rows and columns; Operations on data structures; The apply commands; apply; lapply and sapply; tapply; mapply; Summary
Chapter 3: Saving Data and Printing ResultsFile and directory information; Entering data; Entering data from the command line; Reading tables from files; CSV files; Fixed width files; Printing results and saving data; Saving a workspace; The cat command; The print, format, and paste commands; Primitive input/output; Network options; Opening a socket; Basic socket operations; Summary; Chapter 4: Calculating Probabilities and Random Numbers; Overview; Distribution functions; Cumulative distribution functions; Inverse cumulative distribution functions; Generating pseudorandom numbers; Sampling
Break and next statementsFunctions; Defining a function; Arguments to functions; Scope; Executing scripts; 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; Defining new methods; Polymorphism; Extending the existing methods; Inheritance; Miscellaneous notes; Summary; Chapter 10: Case Study -- Course Grades; Overview; The Course class; The definition of the Course class ; Reading Grades from a file
The assignment classesThe NumericGrade class; The LetterGrade class; Example -- reading grades from a file; 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: Package Management; Index
Summary: Chapter 5: Character and String Operations; Basic string operations; Six focused tasks; Determine the length of a string; Location of a substring; Extracting or changing a substring; Transform case; Splitting strings; Creating formatted strings; Regular expressions; Summary; Chapter 6: Converting and Defining Time Variables; Introduction and assumptions; Converting strings to time data types; Converting time data types to strings; Operations on time data types; Summary; Chapter 7: Basic Programming; Conditional execution; Loop constructs; for loops; while loops; repeat loopsSummary: This book is designed for people with some experience in basic programming practices. It is also assumed that they have some basic experience using R and are familiar using the command line in an R environment. Our primary goal is to raise a beginner to a more advanced level to make him/her more comfortable creating programs and extending R to solve common problems.
Holdings
Item type Current library Collection Call number Status Date due Barcode Item holds
eBook eBook e-Library EBSCO Computers Available
Total holds: 0

Description based upon print version of record.

Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Data Types; Assignment; The workspace; Discrete data types; Integer; Logical; Character; Factors; Continuous data types; Double; Complex; Special data types; Notes on as and is functions; Summary; Chapter 2: Organizing Data; Basic data structures; Vectors; Lists; Data frames; Tables; Matrices and arrays; Censoring data; Appending rows and columns; Operations on data structures; The apply commands; apply; lapply and sapply; tapply; mapply; Summary

Chapter 3: Saving Data and Printing ResultsFile and directory information; Entering data; Entering data from the command line; Reading tables from files; CSV files; Fixed width files; Printing results and saving data; Saving a workspace; The cat command; The print, format, and paste commands; Primitive input/output; Network options; Opening a socket; Basic socket operations; Summary; Chapter 4: Calculating Probabilities and Random Numbers; Overview; Distribution functions; Cumulative distribution functions; Inverse cumulative distribution functions; Generating pseudorandom numbers; Sampling

Chapter 5: Character and String Operations; Basic string operations; Six focused tasks; Determine the length of a string; Location of a substring; Extracting or changing a substring; Transform case; Splitting strings; Creating formatted strings; Regular expressions; Summary; Chapter 6: Converting and Defining Time Variables; Introduction and assumptions; Converting strings to time data types; Converting time data types to strings; Operations on time data types; Summary; Chapter 7: Basic Programming; Conditional execution; Loop constructs; for loops; while loops; repeat loops

Break and next statementsFunctions; Defining a function; Arguments to functions; Scope; Executing scripts; 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; Defining new methods; Polymorphism; Extending the existing methods; Inheritance; Miscellaneous notes; Summary; Chapter 10: Case Study -- Course Grades; Overview; The Course class; The definition of the Course class ; Reading Grades from a file

The assignment classesThe NumericGrade class; The LetterGrade class; Example -- reading grades from a file; 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: Package Management; Index

This book is designed for people with some experience in basic programming practices. It is also assumed that they have some basic experience using R and are familiar using the command line in an R environment. Our primary goal is to raise a beginner to a more advanced level to make him/her more comfortable creating programs and extending R to solve common problems.

Powered by Koha