dpsaveasdatapackage: Save a dataset as a Data Package

View source: R/dpsaveasdatapackage.R

dpsaveasdatapackageR Documentation

Save a dataset as a Data Package

Description

Save a dataset as a Data Package

Usage

dpsaveasdatapackage(data, path, name)

Arguments

data

the data.frame with the data to save

path

directory in which to create the datapackage

name

name of the Data Resource. When omitted a name is generated.

Details

This function is a wrapper function around newdatapackage, dpgeneratedataresources and dpwritedata. These functions are called with the default arguments. This allows for a quick way to save a data set with any necessary data needed to read the dataset.

Value

Does not return anything. Called for the side effect of creating a directory and creating a number of files in this directory. Together these form a complete Data Package.


djvanderlaan/datapackage documentation built on March 18, 2024, 4:57 p.m.