Learn R Programming

crunch (version 1.30.4)

prepareDataForCrunch: Translate a data.frame to Crunch format

Description

This is called within newDataset to extract the Crunch metadata from the data and to transform the data to match the extracted metadata. You can call this directly in order to tailor the data import flow more finely.

Usage

prepareDataForCrunch(data, ...)

Value

A data.frame that is a transformation of data suitable for uploading to Crunch, also containing a "metadata" attribute that is the associated Crunch metadata.

Arguments

data

A data.frame or other rectangular R object

...

additional arguments passed to createDataset. "name" will be required by the Crunch server but is not required by this function.

See Also

createWithPreparedData writePreparedData