dpmr: Data Package Manager for R
データ管理ツール
- CRAN: http://cran.r-project.org/web/packages/dpmr/index.html
- GitHub: https://github.com/christophergandrud/dpmr
- URL: http://christophergandrud.github.io/dpmr/
> library(dpmr)
バージョン: 0.1.9
関数名 | 概略 |
---|---|
datapackage_info |
Return key meta information about the data package |
datapackage_init |
Initialise a data package from a data frame, metadata list, and source code file used to create the data set. |
datapackage_install |
Install a data package |
meta_template |
Template for datapackage.json |
datapackage_info
datapackage.jsonの情報を元にパッケージ内のデータについて表示する
> datapackage_info(path = "test_pkg")
> # Version: 1
> # Last updated: 2016-01-29
> # Description:
> # License:
> # PDDL-1.0
> # http://opendatacommons.org/licenses/pddl/
> # Homepage:
> # Maintainers:
> # Contributors:
> # Sources:
datapackage_init
パッケージ用のデータを作成
> A <- B <- C <- sample(1:20, size = 20, replace = TRUE)
> ID <- sort(rep('a', 20))
> Data <- data.frame(ID, A, B, C)
> datapackage_init(df = Data, package_name = "test_pkg")
> # data/
> # datapackage.json
> # scripts/