https://github.com/robwiederstein/retirementdata
The dataset provides demographic, economic, environmental, and health data by county to determine retirement location. All United States counties are included.
https://github.com/robwiederstein/retirementdata
flexdashboard home-affordability population r rmarkdown shiny us
Last synced: 5 months ago
JSON representation
The dataset provides demographic, economic, environmental, and health data by county to determine retirement location. All United States counties are included.
- Host: GitHub
- URL: https://github.com/robwiederstein/retirementdata
- Owner: RobWiederstein
- License: other
- Created: 2021-08-26T02:04:00.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-13T14:21:57.000Z (almost 4 years ago)
- Last Synced: 2025-05-13T00:49:28.674Z (5 months ago)
- Topics: flexdashboard, home-affordability, population, r, rmarkdown, shiny, us
- Language: R
- Homepage: https://robwiederstein.github.io/retirementData/
- Size: 45.4 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- Changelog: NEWS.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
---
output: github_document
always_allow_html: true
---```{r options, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/",
out.width = "100%"
)
``````{r load-data, include = F}
library(retirementData)
library(kableExtra)
```[](https://lifecycle.r-lib.org/articles/stages.html#experimental)
[](https://github.com/RobWiederstein/retirement/actions)
[](https://img.shields.io/badge/license-MIT-bright%20green)
[](https://codecov.io/gh/RobWiederstein/retirement?branch=main)
[](https://img.shields.io/github/last-commit/RobWiederstein/retirementData)
Retirement Locator# Introduction
The goal of the `retirementData` package was to consolidate some diverse and relevant factors on where to locate for retirement. The data is located in the `retirementData` package but displayed on a separate dashboard [here](https://rob-wiederstein.shinyapps.io/retirementdash/?_ga=2.99037854.1258475930.1633524763-1285109657.1633184174). Within the package, the main dataset is `retirementLoc`. Its variables are:
```{r list-variables, echo=F, fig.align='center'}
library(retirementData)
names(retirementLoc) |>
matrix(ncol = 3, byrow = T) |>
kableExtra::kbl() |>
kable_styling(bootstrap_options = "striped", full_width = T, position = 'center')
```## Installation
You can install the development and experimental version of `retirementData` from its [repository](https://github.com/RobWiederstein/retirementData) with:
``` r
# Or the development version from GitHub:
# install.packages("devtools")
install_github("RobWiederstein/retirementData")
```## Load Data
Once the development package is installed, it can be loaded via:
```{r}
data("retirementData")
```## Common Questions
The data can provide some practical guidance as to candidate locations by identifying high growth counties, reasonable housing costs, air quality and life expectancy. For example, the code below might be used to answer where housing costs are reasonable:
```{r example}
library(retirementData)
retirementLoc |>
dplyr::arrange(years_to_payoff) |>
dplyr::select(state, county, pop_2020, years_to_payoff) |>
dplyr::slice(1:5)
```## Code of Conduct
Please note that the retirementData project is released with a [Contributor Code of Conduct](https://contributor-covenant.org/version/2/0/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.