Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

writePreparedData

Persist to disk a prepared data.frame and metadata


Description

Persist to disk a prepared data.frame and metadata

Usage

writePreparedData(data, metadata = attr(data, "metadata"), file)

Arguments

data

a data.frame that meets the Crunch API specification, as returned by prepareDataForCrunch().

metadata

list of Crunch metadata that corresponds to data. Default is the "metadata" attribute of data, as returned by prepareDataForCrunch().

file

character file path, without extension, to write to.

Value

A character vector of length 2: given a value of file="example", it would return c("example.csv.gz", "example.json"). The function, of course, is called for its side effects of writing a gzipped CSV and a JSON file to those locations.


crunch

Crunch.io Data Tools

v1.28.0
LGPL (>= 3)
Authors
Greg Freedman Ellis [aut, cre], Jonathan Keane [aut], Mike Malecki [aut], Neal Richardson [aut], Gordon Shotwell [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.