Skip to content

Commit

Permalink
Update ojo_caption and ojo_aggregate
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyokc committed Jan 10, 2024
1 parent 82e7596 commit 540b836
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/ojo_aggregate.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
#' @param rate_suffix PARAM_DESCRIPTION, Default: '1k'
#' @return OUTPUT_DESCRIPTION
#' @details DETAILS
#' @examples
#' @examples
#' \dontrun{
#' if(interactive()){
#' #EXAMPLE1
#' }
#' }
#' @seealso
#' @seealso
#' \code{\link[rlang]{enquo}}, \code{\link[rlang]{quosure-tools}}, \code{\link[rlang]{as_label}}
#' \code{\link[purrr]{map}}
#' \code{\link[dplyr]{if_else}}, \code{\link[dplyr]{distinct}}, \code{\link[dplyr]{count}}, \code{\link[dplyr]{mutate}}, \code{\link[dplyr]{arrange}}
#' @rdname ojo_aggregate
#' @export
#' @export
#' @author Anthony Flores
#' @importFrom rlang enquos quo_get_expr as_label
#' @importFrom purrr map_chr
Expand Down Expand Up @@ -55,7 +55,7 @@ ojo_aggregate <- function(data,
)

data <- data |>
dplyr::distinct(id, .keep_all = TRUE)
slice_tail(n = 1, by = id)

if (any(is.na(variable_name))) {
variable_name <- ""
Expand Down
3 changes: 3 additions & 0 deletions R/ojo_caption.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ojo_caption <- function() {
"Source: Oklahoma Policy Institute, Scrapped from OSCN."
}

0 comments on commit 540b836

Please sign in to comment.