newDatasetFromFile {crunch} | R Documentation |
Upload a file to Crunch to make a new dataset
Description
This function allows you to upload a .csv
or .sav
file directly to Crunch
without first reading it into R. This is useful both because it preserves SPSS
metadata that is lost when reading .sav
files into R and because it is more
efficient just to upload the file to the server.
Usage
newDatasetFromFile(x, name = basename(x), schema, ...)
Arguments
x |
character, the path to a local file to upload, or a URL. This
should either be a |
name |
character, the name to give the new Crunch dataset. By default the name of the dataset will be the filename |
schema |
character, the path to a local file to upload, or a URL. The
file specifies the dataset schema (variable types, categories, etc.) to
use. Currently only implemented for Triple-S files. This should either be a
|
... |
additional arguments passed to createDataset |
Details
You no longer need to call this function directly: you can call
newDataset()
and pass the filename or URL, and it will handle it for you,
thereby saving you eight keystrokes.
Value
On success, an object of class CrunchDataset