{"id":32369226,"url":"https://github.com/santiagohermo/data.tools","last_synced_at":"2025-10-24T19:59:01.444Z","repository":{"id":214409672,"uuid":"649960711","full_name":"santiagohermo/data.tools","owner":"santiagohermo","description":"Convenience functions for data manipulation","archived":false,"fork":false,"pushed_at":"2025-06-18T17:16:21.000Z","size":25,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-18T18:25:12.195Z","etag":null,"topics":["data-analysis","data-cleaning","data-science","data-wrangling"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/santiagohermo.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-06-06T02:55:55.000Z","updated_at":"2025-06-18T17:16:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"8c63e89c-cff1-40ac-8b85-0af288db3079","html_url":"https://github.com/santiagohermo/data.tools","commit_stats":null,"previous_names":["santiagohermo/data.tools"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/santiagohermo/data.tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santiagohermo%2Fdata.tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santiagohermo%2Fdata.tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santiagohermo%2Fdata.tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santiagohermo%2Fdata.tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/santiagohermo","download_url":"https://codeload.github.com/santiagohermo/data.tools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/santiagohermo%2Fdata.tools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280857829,"owners_count":26403198,"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","status":"online","status_checked_at":"2025-10-24T02:00:06.418Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["data-analysis","data-cleaning","data-science","data-wrangling"],"created_at":"2025-10-24T19:58:35.942Z","updated_at":"2025-10-24T19:59:01.435Z","avatar_url":"https://github.com/santiagohermo.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\ntitle: \"data.tools: Tools for data manipulation\"\noutput: github_document\n---\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\nPackage that includes functions for data manipulation.\nIt is suggested to use the package with [data.table](https://github.com/Rdatatable/data.table).\n\n## Installation\n\nYou can install the package using devtools:\n\n```{r, eval = F}\ndevtools::install_github(\"santiagohermo/data.tools\")\n```\n\n## Usage\n\n```{r, eval = F}\nlibrary(data.tools)\n\n# Simulate panel data\ndt \u003c- data.table::data.table(unit = c(\"A\", \"A\", \"B\", \"B\", \"C\", \"C\", \"D\", \"D\", \"E\", \"E\"), \n                             time = rep(c(1, 2), 5))\ndt[, y := rnorm(.N)]\n\n# Create equal-sized groups\ndt[, terciles_y        := cut_in_n(y, n=3)]\ndt[, terciles_y_within := cut_in_n(y, n=3), by=time]\n\n# Save the data set to a csv file with a log file\nsave_data(dt, key = c(\"unit\", \"time\"), \n          outfile = \"data.csv\")\n\n# Save the data set to a feather without a log file\nsave_data(dt, key = c(\"unit\", \"time\"), \n          outfile = \"data.feather\", \n          logfile = FALSE)\n\n```\n\n\n## Available functions\n\n- `cut_in_n`: Bin a numeric vector into n equal-sized groups.\n- `save_data`: Save data set to a file with a log file, several formats are available.\n- `weighted_sd` and `weighted_var`: Compute weighted standard deviation and variance.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsantiagohermo%2Fdata.tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsantiagohermo%2Fdata.tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsantiagohermo%2Fdata.tools/lists"}