HWZdata: Get HWZ Datasets
Description
Wrapper for didactical datasets used in statistic courses.Usage
HWZdata(name, url = NULL, header = TRUE, sep = ";", ...)
Arguments
name
the name of the file, usually without extension. url
a url where the data reside, should have the form "http://www.mysite.net/data/"
. Defaults to the data folder on my site. header
a logical value indicating whether the file contains the names of the variables as its first line. If missing, the value is determined from the file format: header is set to TRUE
if and only if the first row contains one fewer field than the number of columns. sep
the field separator character. Values on each line of the file are separated by this character. Default is - unlike in read.table
- ";" instead of 'white space'. Value
data.frame
containing a representation of the data in the file.
Examples
Run this code## Not run:
# d.farm <- HWZdata("farmer")
# ## End(Not run)
Run the code above in your browser using DataLab