Skip to content

Commit

Permalink
Add Create report_percent_missing.R roxygen
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyokc committed Oct 4, 2023
1 parent d45513e commit 06c5564
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions R/ojo_add_population.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ ojo_add_population <- function(data,
"Adds population data from the Census Population Estimate Program."

# TODO: Add option for population density
# TODO: Include a data source we host for when Census is down (maintenance, gov't shutdowns, etc.)

## Variable Handling
# By default geography gets both the county and state
Expand Down
18 changes: 18 additions & 0 deletions R/report_percent_missing.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
#' @title FUNCTION_TITLE
#' @description FUNCTION_DESCRIPTION
#' @param data PARAM_DESCRIPTION
#' @param column PARAM_DESCRIPTION
#' @return OUTPUT_DESCRIPTION
#' @details DETAILS
#' @examples
#' \dontrun{
#' if(interactive()){
#' #EXAMPLE1
#' }
#' }
#' @seealso
#' \code{\link[dplyr]{filter}}, \code{\link[dplyr]{nth}}, \code{\link[dplyr]{pull}}
#' @rdname report_percent_missing
#' @export
#' @author Anthony Flores
#' @importFrom dplyr filter nth pull
report_percent_missing <- function(data, column) {
na_data <- data |>
tably({{column}}) |>
Expand Down

0 comments on commit 06c5564

Please sign in to comment.