prepareDataForCrunch {crunch}R Documentation

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

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.

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.

See Also

createWithPreparedData writePreparedData


[Package crunch version 1.30.4 Index]