provide.data {sm} | R Documentation |
This is a utility function, widely used in the scripts acconpanying
the book described below.
The function provides access to the dataset identified by name
.
For flexibility, the datasets are provided in ASCII form, with the name
of each variable listed in the first row of the file.
This function reads the files and makes the data available as a data frame.
provide.data(data, path, describe=T)
data |
name of the data to be loaded and attached as data.frame
|
path |
the path where the data and its documentation should be searched for,
The default value is an appropriate sub-directory of the sm package.
|
describe |
logical flag; if describe=T (default), a documentation file of the data
is searched and printed, if available.
|
the data file is assumed to be called data
.dat and the documentation
file describing the data (if present) is assumed to be called data
.doc.
If the data.frame
is already attached, it is re-attached in the 2nd
position of the search
list.
none
messages are printed on the command window, describing progress of
the operation. If describe=T
and a documentation file exists, this
is printed on the command windows or another windows, depending on
the type of platform where the program is executed.
Bowman, A.W. and Azzalini, A. (1997). Applied Smoothing Techniques for Data Analysis: the Kernel Approach with S-Plus Illustrations. Oxford University Press, Oxford.
provide.data(birth)