newDatasetFromFile | R Documentation |
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.
newDatasetFromFile(x, name = basename(x), schema, ...)
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 |
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.
On success, an object of class CrunchDataset
newDataset()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.