HH (version 3.1-5)

HHscriptnames: Find absolute pathname of a script file for the HH book in the HH package.

Description

Find absolute pathname of a script file for the HH book in the HH package.

Usage

HHscriptnames(chapternumbers, edition=2)

WindowsPath(x)

Arguments

chapternumbers
A number or letter name for a chapter in the HH book. For the Second edition, the valid values are from the set c(1:20, LETTERS[1:12]). For the First edition, the valid values are from the set c(1:18). The ar
edition
Either 2 or 1, for the second or first edition of the book Statistical Analysis and Data Display.
x
A vector or matrix of pathnames as generated by R, with "/" as the separator character.

Value

  • For HHscriptnames, matrix of full pathnames to script files in the HH package.

    For WindowsPath, a vector or matrix of full pathnames with all "/" characters changed to "\\".

References

Heiberger, Richard M. and Holland, Burt (anticipated 2015). Statistical Analysis and Data Display: An Intermediate Course with Examples in R, Second Edition. Springer Texts in Statistics. Springer. ISBN x-xxx-xxxxx-x. Heiberger, Richard M. and Holland, Burt (2004). Statistical Analysis and Data Display: An Intermediate Course with Examples in S-Plus, R, and SAS, First Edition. Springer Texts in Statistics. Springer. ISBN 0-387-40270-5.

Examples

Run this code
## All Operating Systems

  ## Second Edition
  HHscriptnames(6)
  HHscriptnames("6")
  HHscriptnames("oway")

  HHscriptnames("H")
  HHscriptnames("RApx")

  HHscriptnames(c(1:20, LETTERS[1:12]))

  ## with Windows pathname separators
  WindowsPath(HHscriptnames(c(6:14)))
  cat(WindowsPath(HHscriptnames(6)), "\n")
  cat(paste(WindowsPath(HHscriptnames(c(6:14))), "\n"))

  ## First Edition
  HHscriptnames(6, edition=1)

Run the code above in your browser using DataCamp Workspace