options()$HH.ROOT.DIR
directory.hh(file)
options()$HH.ROOT.DIR
directory.
file
is the name exactly as specified in Heiberger and Holland
(2004).
The hh
functiohh
directory,
which must be stored as options()$HH.ROOT.DIR
If you installed the HH library from an R or S-Plus package, then
option options()$HH.ROOT.DIR
is set automatically.
If you installed the HH library by unzipping the downloaded online
files (not a package),
then you must manually define the HH.ROOT.DIR
option in
your working directory (for example, "c:/HOME/yourname/.Data"
in
S-Plus, or the .GlobalEnv
in R). You may do this in your
.First
function in either system. Or you may enter at the
command prompt a statement of the form
options(HH.ROOT.DIR="c:/HOME/hh")
in Windows or
options(HH.ROOT.DIR="/usr/users/hh")
in Unix.
See Appendix B of Heiberger and Holland (2004) for further details.
The options
statement
may need to be modified to match the location of the hh
directory on
your machine. If you use more than one computer, you may need a
different value for the HH.ROOT.DIR
option on each machine. This
is the only change you will need to make in order to run any of our
software or examples. The hh
function itself is unchanged.hotdog <- read.table(hh("datasets/hotdog.dat"), header=TRUE)
Run the code above in your browser using DataCamp Workspace