feather: R bindings to the feather API
- CRAN: http://cran.r-project.org/web/packages/feather/index.html
- GitHub: https://github.com/wesm/feather
> library(feather)
バージョン: 0.3.0
関数名 | 概略 |
---|---|
feather |
Access a feather store like a data frame |
feather_metadata |
Retrieve metadata about a feather file |
read_feather |
Read and write feather files. |
feather
feather形式ファイルの読み込み
> feather("gapminder.feather")
Error in normalizePath(path, mustWork = TRUE): path[1]="gapminder.feather": No such file or directory
feather_metadata
featherファイルのメタ情報を取得する
> feather_metadata("gapminder.feather")
Error: IO error: Failed to open file: gapminder.feather
read_feather / write_feather
feather形式ファイルの読み込みと書き込み
> data("gapminder", package = "gapminder")
> dim(gapminder)
>
> write_feather(gapminder, "gapminder.feather")
> rm(gapminder)
>
> read_feather("gapminder.feather")
>
> microbenchmark::microbenchmark(
+ func.data = data("gapminder", package = "gapminder"),
+ func.feather = read_feather("gapminder.feather")
+ )