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.
prepareDataForCrunch(data, ..., project = defaultCrunchProject())
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.
A ProjectFolder
object, string path that could be passed to cd()
relative to the root project, or a URL for a ProjectFolder
. If left empty,
rcrunch will look in envOrOption('crunch.default.project')
and error if nothing
is found.
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.
createWithPreparedData writePreparedData