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, ...)
On success, an object of class CrunchDataset
character, the path to a local file to upload, or a URL. This
should either be a .csv
, .sav
(SPSS), .asc
(Triple-S data), or .dat
(Triple-S data) file
character, the name to give the new Crunch dataset. By default the name of the dataset will be the filename
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
.xml
or .sss
file (both are possible for Triple-S metadata files)
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.
newDataset()