You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Kevin O'Brien 984001a55c Updated gitignore to remove more rstudio project files 6 years ago
tests renamed class files 8 years ago
.gitignore Updated gitignore to remove more rstudio project files 6 years ago
.travis.yml Add travis.yml file with DESCRIPTION and LICENSE files 7 years ago
DESCRIPTION Fix title format in DESCRIPTION 7 years ago
LICENSE Add travis.yml file with DESCRIPTION and LICENSE files 7 years ago
README.md Add comment to readme file 7 years ago
classPartition.R changed class file naming 8 years ago
classPartitionEval.R changed class file naming 8 years ago
classPartitionFather.R changed class file naming 8 years ago
classPartitionSimple.R changed class file naming 8 years ago
classTrajPartitioned.R changed class file naming 8 years ago
classTrajectories.R added comments, section headings, and renamed hospitals for clarity 8 years ago
classTrajectoriesBis.R changed class file naming 8 years ago
run_tests.R Adding unit tests 8 years ago
template for defining class Initial Commit 8 years ago
work_file.R added comments, section headings, and renamed hospitals for clarity 8 years ago

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