{"id":14066019,"url":"https://github.com/burchill/zplyr","last_synced_at":"2025-07-29T21:34:48.483Z","repository":{"id":45696696,"uuid":"73516983","full_name":"burchill/zplyr","owner":"burchill","description":"My personal bundle of functions","archived":false,"fork":false,"pushed_at":"2023-01-07T20:48:22.000Z","size":283,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-13T07:11:00.857Z","etag":null,"topics":["zplyr"],"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/burchill.png","metadata":{"files":{"readme":"README.md","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":"2016-11-11T22:42:08.000Z","updated_at":"2024-07-30T03:49:38.000Z","dependencies_parsed_at":"2023-02-08T01:31:40.848Z","dependency_job_id":null,"html_url":"https://github.com/burchill/zplyr","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/burchill%2Fzplyr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/burchill%2Fzplyr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/burchill%2Fzplyr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/burchill%2Fzplyr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/burchill","download_url":"https://codeload.github.com/burchill/zplyr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228052673,"owners_count":17862105,"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":["zplyr"],"created_at":"2024-08-13T07:04:54.112Z","updated_at":"2024-12-04T05:31:15.405Z","avatar_url":"https://github.com/burchill.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"# zplyr: my personal package\n\n### Note: \"zplyr\" has nothing to do with \"plyr\" or \"dplyr\", the name was just a bad joke\n\nAs I'm working on more experiments, I've been growing a sort of collection of home-made functions that I use.  This is that collection.  \n\nFor example, in one of my papers, I'm using something called \"sliding contrast coding\", also known as \"forward/backward difference coding\". `R` doesn't have a base function that makes this contrast matrix, so I made my own, tweaking the code from `stats::contr.helmert()` to make: `zplyr::contr.slide()`. Evidently that was already a function, `MASS::contr.sdif()`, but I didn't know that ahead of time.\n\nOr another, less intelligent example of code in here comes from that until second year of grad school, I always thought that `dplyr::summarise()` completely ungroups the data frame before returning it. I found out that actually, it just peels back the last grouping element. \nTo make sure all of my code was \"safe,\" I went back and substituted `summarise` for my own code, `zummarise` which is just a `nse` wrapper for `summarise_` that also ungroups the dataframe aferwards.  Sometimes this is helpful if you're piping into code that doesn't play nice with grouped tibbles.\n\nThere are also a bunch of `ggplot2` \"shortcuts\" that I've made for graphing things. Pretty much all of this code was written before the amazing `dplyr` revamp, so some of the nonstandard evaluation stuff I wrote seems pretty hacky now in comparison, but I've also updated some of it now to be sexier.\n\nPretty much everything is built off `dplyr`, `purrr`, and `rlang`!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fburchill%2Fzplyr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fburchill%2Fzplyr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fburchill%2Fzplyr/lists"}