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

Description Usage Arguments Value Author(s) References Examples

View source: R/HHscriptnames.R

Description

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

Usage

1
2
3
HHscriptnames(chapternumbers=NULL, edition=2)

WindowsPath(x, display=TRUE)

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:18, LETTERS[1:15]). For the First edition, the valid values are from the set c(1:18). The argument may be a vector of one or more items. The file basename for the corresponding chapter is also accepted. If the chapternumbers is NULL (the default) then the directory containing the script files for the edition is returned.

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.

display

Logical. With the default TRUE, the WindowsPath function prints the pathname on the console with a single \ character as the separator suitable for copy and paste into a Windows program and returns its result invisibly. With FALSE the WindowsPath function does not print anything; it returns its result visibly.

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 "\\" (which displays as \ by the cat function). When display is TRUE the function also prints at the console the pathnames with a single \ character suitable for copy and paste into a Windows program.

Author(s)

Richard M. Heiberger <rmh@temple.edu>

References

Heiberger, Richard M. and Holland, Burt (2015). Statistical Analysis and Data Display: An Intermediate Course with Examples in R. Second Edition. Springer-Verlag, New York. https://www.springer.com/us/book/9781493921218

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
## Not run: 
  ## All Operating Systems

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

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

  HHscriptnames(c(1:18, LETTERS[1:15]))

  ## with Windows pathname separators
  WindowsPath(HHscriptnames())
  WindowsPath(HHscriptnames(6))
  WindowsPath(HHscriptnames(6), display=FALSE)
  WindowsPath(HHscriptnames(6:8))
  WindowsPath(HHscriptnames(6:8), display=FALSE)

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

## End(Not run)

Example output

Loading required package: lattice
Loading required package: grid
Loading required package: latticeExtra
Loading required package: RColorBrewer
Loading required package: multcomp
Loading required package: mvtnorm
Loading required package: survival
Loading required package: TH.data
Loading required package: MASS

Attaching package: 'TH.data'

The following object is masked from 'package:MASS':

    geyser

Loading required package: gridExtra
[1] "/usr/lib/R/site-library/HH/scripts/hh2/"
  Absolute Pathname                              
6 "/usr/lib/R/site-library/HH/scripts/hh2/oway.R"
  Absolute Pathname                              
6 "/usr/lib/R/site-library/HH/scripts/hh2/oway.R"
     Absolute Pathname                              
oway "/usr/lib/R/site-library/HH/scripts/hh2/oway.R"
  Absolute Pathname                                  
H "/usr/lib/R/site-library/HH/scripts/hh2/otherApx.R"
     Absolute Pathname                              
RApx "/usr/lib/R/site-library/HH/scripts/hh2/RApx.R"
   Absolute Pathname                                   
1  "/usr/lib/R/site-library/HH/scripts/hh2/intr.R"     
2  "/usr/lib/R/site-library/HH/scripts/hh2/data.R"     
3  "/usr/lib/R/site-library/HH/scripts/hh2/conc.R"     
4  "/usr/lib/R/site-library/HH/scripts/hh2/grap.R"     
5  "/usr/lib/R/site-library/HH/scripts/hh2/iinf.R"     
6  "/usr/lib/R/site-library/HH/scripts/hh2/oway.R"     
7  "/usr/lib/R/site-library/HH/scripts/hh2/mcomp.R"    
8  "/usr/lib/R/site-library/HH/scripts/hh2/rega.R"     
9  "/usr/lib/R/site-library/HH/scripts/hh2/regb.R"     
10 "/usr/lib/R/site-library/HH/scripts/hh2/regbb.R"    
11 "/usr/lib/R/site-library/HH/scripts/hh2/regc.R"     
12 "/usr/lib/R/site-library/HH/scripts/hh2/tway.R"     
13 "/usr/lib/R/site-library/HH/scripts/hh2/dsgn.R"     
14 "/usr/lib/R/site-library/HH/scripts/hh2/dsgntwo.R"  
15 "/usr/lib/R/site-library/HH/scripts/hh2/twtb.R"     
16 "/usr/lib/R/site-library/HH/scripts/hh2/npar.R"     
17 "/usr/lib/R/site-library/HH/scripts/hh2/logi.R"     
18 "/usr/lib/R/site-library/HH/scripts/hh2/tser.R"     
A  "/usr/lib/R/site-library/HH/scripts/hh2/RApx.R"     
B  "/usr/lib/R/site-library/HH/scripts/hh2/HHApx.R"    
C  "/usr/lib/R/site-library/HH/scripts/hh2/RcmdrApx.R" 
D  "/usr/lib/R/site-library/HH/scripts/hh2/RExcelApx.R"
E  "/usr/lib/R/site-library/HH/scripts/hh2/ShinyApx.R" 
F  "/usr/lib/R/site-library/HH/scripts/hh2/Rpack.R"    
G  "/usr/lib/R/site-library/HH/scripts/hh2/PrcnApx.R"  
H  "/usr/lib/R/site-library/HH/scripts/hh2/otherApx.R" 
I  "/usr/lib/R/site-library/HH/scripts/hh2/mthp.R"     
J  "/usr/lib/R/site-library/HH/scripts/hh2/dstr.R"     
K  "/usr/lib/R/site-library/HH/scripts/hh2/edit.R"     
L  "/usr/lib/R/site-library/HH/scripts/hh2/typg.R"     
M  "/usr/lib/R/site-library/HH/scripts/hh2/emcs.R"     
N  "/usr/lib/R/site-library/HH/scripts/hh2/latexApx.R" 
O  "/usr/lib/R/site-library/HH/scripts/hh2/MSword.R"   
 \usr\lib\R\site-library\HH\scripts\hh2\ 
6 \usr\lib\R\site-library\HH\scripts\hh2\oway.R 
  Absolute Pathname                                      
6 "\\usr\\lib\\R\\site-library\\HH\\scripts\\hh2\\oway.R"
6 \usr\lib\R\site-library\HH\scripts\hh2\oway.R 
 7 \usr\lib\R\site-library\HH\scripts\hh2\mcomp.R 
 8 \usr\lib\R\site-library\HH\scripts\hh2\rega.R 
  Absolute Pathname                                       
6 "\\usr\\lib\\R\\site-library\\HH\\scripts\\hh2\\oway.R" 
7 "\\usr\\lib\\R\\site-library\\HH\\scripts\\hh2\\mcomp.R"
8 "\\usr\\lib\\R\\site-library\\HH\\scripts\\hh2\\rega.R" 
  Absolute Pathname                                   
6 "/usr/lib/R/site-library/HH/scripts/hh1/Ch06-oway.r"

HH documentation built on Nov. 28, 2020, 9:06 a.m.

Related to HHscriptnames in HH...