{"id":28121031,"url":"https://github.com/edwindj/ffbase2","last_synced_at":"2025-05-14T07:44:22.284Z","repository":{"id":19589995,"uuid":"22840347","full_name":"edwindj/ffbase2","owner":"edwindj","description":"dplyr for ff","archived":false,"fork":false,"pushed_at":"2017-08-31T08:48:07.000Z","size":74,"stargazers_count":36,"open_issues_count":1,"forks_count":6,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-31T15:27:21.567Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edwindj.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-11T13:41:29.000Z","updated_at":"2020-11-07T17:42:26.000Z","dependencies_parsed_at":"2022-09-06T17:30:42.231Z","dependency_job_id":null,"html_url":"https://github.com/edwindj/ffbase2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edwindj%2Fffbase2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edwindj%2Fffbase2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edwindj%2Fffbase2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edwindj%2Fffbase2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edwindj","download_url":"https://codeload.github.com/edwindj/ffbase2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254097136,"owners_count":22014161,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-14T07:42:09.730Z","updated_at":"2025-05-14T07:44:22.275Z","avatar_url":"https://github.com/edwindj.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"ffbase2\n=======\n\nNext version of `ffbase`\n- dplyr on ff\n\nWorking, but documentation is not yet CRAN ready...\n\n[![Build Status](https://travis-ci.org/edwindj/ffbase2.svg?branch=master)](https://travis-ci.org/edwindj/ffbase2)\n\n## Install\n\n`ffbase` is currently only available from github. To install it, run the following\nscript.\n```S\n# install.packages(\"devtools\")\ndevtools::install_github(\"edwindj/ffbase2\")\n```\n\n### CRAN-readiness\n\n- Documentation needs to be completed\n- Add more tests\n- copy some `dplyr` internal functions into ffbase2\n- Phase out dependency on `ffbase` (version 1)\n\n## Usage\n```{r, echo=FALSE}\nlibrary(ffbase2)\nunlink(\"db_ff\", recursive = T, force = T)\n```\n\nCreating a tbl_ffdf: this will create/use a temporary ffdf data.frame in \n`options(\"fftempdir\")`.\n\n```S\niris_f \u003c- tbl_ffdf(iris)\n\nspecies \u003c- \n   iris_f %\u003e%\n   group_by(Species) %\u003e%\n   summarise(petal_width = sum(Petal.Width))\n```\n\nA `tbl_ffdf` is also a `ffdf`\n```{r}\niris_f \u003c- tbl_ffdf(iris)\nis.ffdf(iris_f)\n```\n\nUse `src_ffdf` for storing your data in a directory \n```{r}\nlibrary(ffbase2)\n# store a ffdf data.frame in \"./db_ff\"\" directory\ncars \u003c- tbl_ffdf(mtcars, src=\"./db_ff\", name=\"cars\")\nprint(cars, n=2)\n```\n\nTo retrieve tables from a ffdf source, use `src_ffdf`\n```{r}\nsrc \u003c- src_ffdf(\"./db_ff\")\nprint(src) \n\n# what tables are available?\nsrc_tbls(src)\n\n#retrieve table from src \ncars \u003c- tbl(src, from=\"cars\") # or equivalently tbl_ffdf(src=src, name=\"cars\")\nprint(cars, n=2)\n```\n\nUse `copy_to` to add data to a `src_ffdf`\n```{r}\nsrc \u003c- src_ffdf(\"./db_ff\")\ncopy_to(src, iris) # or equivalenty tbl_ffdf(iris, src)\nsrc_tbls(src)\n```\n\n```{r, echo=FALSE}\nunlink(\"db_ff\",recursive = T, force = T)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedwindj%2Fffbase2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedwindj%2Fffbase2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedwindj%2Fffbase2/lists"}