Skip to content

Commit

Permalink
added poverty data set
Browse files Browse the repository at this point in the history
  • Loading branch information
TysonStanley committed Aug 4, 2018
1 parent 7ce9b0f commit dd47596
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 20 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ vignettes/*.pdf

# Shiny token, see https://shiny.rstudio.com/articles/shinyapps.html
rsconnect/
.Rproj.user
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: rlm
Type: Package
Title: Regressional Analysis and Linear Models
Version: 0.1.0
Version: 0.1.1
Author: Tyson S. Barrett
Maintainer: The package maintainer <[email protected]>
Description: Useful functions and the data required for USU's EDUC 7610 course.
Expand Down
2 changes: 0 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# Generated by roxygen2: do not edit by hand

export("%>%")
export("%||%")
export(cond_effect)
export(jn)
importFrom(magrittr,"%>%")
importFrom(probemod,jn)
importFrom(purrr,"%||%")
importFrom(stats,lm)
importFrom(stats,setNames)
15 changes: 15 additions & 0 deletions R/data_poverty.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#' Poverty Data Set
#'
#' A small data set with n = 51 states (and the District of Columbia) regarding poverty rates,
#' teen birth rates, and violent crime rate.
#'
#' @format A data frame with 125 rows and 26 variables:
#' \describe{
#' \item{State}{State name}
#' \item{poverty_pct}{the poverty rate for the state}
#' \item{birthrate_15-17}{Birth rate for females aged 15 - 17 years old in the state}
#' \item{birthrate_18-19}{Birth rate for females aged 18 - 19 years old in the state}
#' \item{ViolentCrime}{The violent crime rate for the state}
#' \item{TeenBirth}{The overall teen birth rate for the state}
#' }
"poverty"
11 changes: 2 additions & 9 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,8 @@




#' null-default re-export from purrr
#'
#' @importFrom purrr %||%
#' @name %||%
#' @rdname null-default
#' @export
NULL

## Infix operator (null-default)
`%||%` <- purrr::`%||%`

#' re-export magrittr pipe operator
#'
Expand Down
Binary file added data/poverty.rda
Binary file not shown.
8 changes: 0 additions & 8 deletions man/null-default.Rd

This file was deleted.

23 changes: 23 additions & 0 deletions man/poverty.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dd47596

Please sign in to comment.