Learn R Programming

crunch (version 1.25.0)

newDatasetFromFile: 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), ...)

Arguments

name

character, the name to give the new Crunch dataset. By default the name of the dataset will be the filename

...

additional arguments passed to createDataset

file

character, the path to a local file to upload, or a URL. This should either be a .csv or .sav (SPSS) file

Value

On success, an object of class CrunchDataset

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.

See Also

newDataset()