Go to file
Kevin O'Brien 984001a55c Updated gitignore to remove more rstudio project files 2016-06-23 12:04:48 -05:00
tests renamed class files 2015-01-10 08:32:45 -06:00
.gitignore Updated gitignore to remove more rstudio project files 2016-06-23 12:04:48 -05:00
.travis.yml Add travis.yml file with DESCRIPTION and LICENSE files 2015-12-07 11:35:33 -06:00
DESCRIPTION Fix title format in DESCRIPTION 2015-12-07 13:24:08 -06:00
LICENSE Add travis.yml file with DESCRIPTION and LICENSE files 2015-12-07 11:35:33 -06:00
README.md Add comment to readme file 2015-12-07 11:48:51 -06:00
classPartition.R changed class file naming 2014-10-15 12:58:25 -05:00
classPartitionEval.R changed class file naming 2014-10-15 12:58:25 -05:00
classPartitionFather.R changed class file naming 2014-10-15 12:58:25 -05:00
classPartitionSimple.R changed class file naming 2014-10-15 12:58:25 -05:00
classTrajPartitioned.R changed class file naming 2014-10-15 12:58:25 -05:00
classTrajectories.R added comments, section headings, and renamed hospitals for clarity 2015-01-10 11:26:08 -06:00
classTrajectoriesBis.R changed class file naming 2014-10-15 12:58:25 -05:00
run_tests.R Adding unit tests 2014-10-15 12:51:48 -05:00
template for defining class Initial Commit 2014-07-07 13:01:04 -05:00
work_file.R added comments, section headings, and renamed hospitals for clarity 2015-01-10 11:26:08 -06:00

README.md

s4_intro

worked examples from Genolini's A (Not So) Short Introduction to S4 (2008)

http://christophe.genolini.free.fr/webTutorial/notSoShort.php

Why Objects?

  • minimize execution errors
  • minimize type errors
  • execute validity checking
  • support inheritance
  • encapsulate the object and its tools

set Class Syntax

setClass(Class, representation, prototype, contains=character(), validity, access, where, version, sealed, package, S3methods = FALSE, slots)

setMethod Syntax

setMethod(f, signature=character(), definition, where = topenv(parent.frame()), valueClass = NULL, sealed = FALSE)

setGenric Syntax

setGeneric(name, def= , group=list(), valueClass=character(), where= , package= , signature= , useAsDefault= , genericFunction= , simpleInheritanceOnly = )

Travis?

Added travis-ci to test how it works with r-unit