LANGUAGE FEATURE IN R - Some New Language Features in R...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Some New Language Features in R Luke Tierney University of Iowa
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Some New Language Features in R JSM 2003 Introduction R is a powerful, high level language. R is used to provide statistical functionality to develop new statistical functionality Are there missing language features that can make developers more productive make code more robust Can we learn from other high level languages? 1
Background image of page 2
Some New Language Features in R JSM 2003 Outline Name Spaces why they are needed what R 1.7 provides code analysis byte code compilation Exception Handling Conclusions 2
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Some New Language Features in R JSM 2003 Why Name Spaces Two issues: prevent unintended shadowing of globals evaluating pi <- 0.3 can break time series code defining a function exp , log or local can break code. hiding internal functions build more complex functions from simpler ones create and (re)use functional building blocks can have 5 public, 50 private functions Common solution: name space management tools. 3
Background image of page 4
Some New Language Features in R JSM 2003 Name Spaces in R 1.7 R 1.7 allows packages to have name spaces Name spaces are declared with a NAMESPACE file File includes directives, such as export export(as.stepfun, ecdf, is.stepfun, stepfun)
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/12/2010 for the course APPLIED ST 2010 taught by Professor Various during the Spring '10 term at Universidad Nacional Agraria La Molina.

Page1 / 15

LANGUAGE FEATURE IN R - Some New Language Features in R...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online