datafile | R Documentation |
Invoking this function writes one or more nominated files to the working directory. In particular, it may be used to write the files 'fuel.txt' and 'fuel.csv' that are used in Chapter 1 of DAAGUR, and the files 'oneBadRow.txt' and 'scan-demo.txt' that are used in Chapter 14 of DAAGUR.
datafile(file = c("fuel", "travelbooks"), datastore =
DAAG::DAAGxdb, altstore = DAAG::zzDAAGxdb, showNames =
FALSE)
file |
character; with the defaults for |
datastore |
Each element of this list is a character vector that holds the rows of a file. |
altstore |
An alternative list. The default alternative list is used for the two files that are more than a few lines. |
showNames |
if |
An ASCII file is output to the current working directory. The names of all available datasets are returned invisibly.
J.H. Maindonald
datafile(file="", showNames=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.