万本电子书0元读

万本电子书0元读

顶部广告

R Object Oriented Programming电子书

售       价:¥

3人正在读 | 0人评论 9.8

作       者:Kelly Black

出  版  社:Packt Publishing

出版时间:2014-10-27

字       数:99.8万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
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.
目录展开

R Object-oriented Programming

Table of Contents

R Object-oriented Programming

Credits

About the Author

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why subscribe?

Free access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Copyright violations

Questions

1. Data Types

Assignment

The workspace

Discrete data types

Integer

Logical

Character

Factors

Continuous data types

Double

Complex

Special data types

Notes on the as and is functions

Summary

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

3. Saving Data and Printing Results

File 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

4. Calculating Probabilities and Random Numbers

Overview

Distribution functions

Cumulative distribution functions

Inverse cumulative distribution functions

Generating pseudorandom numbers

Sampling

Summary

5. Character and String Operations

Basic string operations

Six focused tasks

Determining the length of a string

Location of a substring

Extracting or changing a substring

Transforming the case

Splitting strings

Creating formatted strings

Regular expressions

Summary

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

7. Basic Programming

Conditional execution

Loop constructs

The for loop

The while loop

The repeat loop

Break and next statements

Functions

Defining a function

Arguments to functions

Scope

Executing scripts

Summary

8. S3 Classes

Defining classes and methods

Defining objects and inheritance

Encapsulation

A final note

Summary

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

10. Case Study – Course Grades

Overview

The Course class

The definition of the Course class

Reading grades from a file

The assignment classes

The NumericGrade class

The LetterGrade class

Example – reading grades from a file

Defining indexing operations

Redefining existing functions

Redefining arithmetic operations

Summary

11. Case Study – Simulation

The simulation classes

The Monte-Carlo class

Examples

Summary

A. Package Management

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部