Usage
source_data(url, rdata, sha1 = NULL, cache = FALSE, clearCache = FALSE,
sep = ",", header = TRUE, stringsAsFactors = default.stringsAsFactors(),
envir = parent.frame(), ...)
Arguments
url
The data's URL. To distinguish between plain-text and RDATA the
url must end in a distinguishing file extension.
rdata
logical. Whether or not the data set is an .RDATA file.
If not specified than source_url will attempt to determine whether or
not the file is an .RDATA file from the URL's extension.
sha1
Character string of the file's SHA-1 hash, generated by
source_data. Note if you are using data stored using Git, this is not
the file's commit SHA-1 hash.
cache
logical. Whether or not to cache the data so that it is not
downloaded every time the function is called.
clearCache
logical. Whether or not to clear the downloaded data from
the cache.
sep
The separator method for the plain-text data. For example, to load
comma-separated values data (CSV) use sep = "," (the default). To load
tab-separated values data (TSV) use sep = "t". Only relevant for
plain-text data.
header
Logical, whether or not the first line of the file is the
header (i.e. variable names). The default is header = TRUE. Only
relevant for plain-text data.
stringsAsFactors
logical. Should character vectors be converted to
factors? Note that this is overridden by as.is and colClasses,
both of which allow finer control. Only relevant for plain-text data.
envir
the environment where the data should be loaded.