Skip to content

Commit

Permalink
minor vignette fix
Browse files Browse the repository at this point in the history
  • Loading branch information
s87jackson committed Feb 21, 2024
1 parent 3dc338c commit cdb7daa
Show file tree
Hide file tree
Showing 18 changed files with 26,496 additions and 18,122 deletions.
13 changes: 8 additions & 5 deletions R/compare_counts.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,14 @@
#' @return A tibble of counts.
#'
#' @examples
#' compare_counts(
#' get_fars(years = 2020, states="Virginia"),
#' where = list(urb="rural"),
#' where2 = list(urb="urban")
#' )
#'
#' \dontrun{
#' compare_counts(
#' get_fars(years = 2020, states="Virginia"),
#' where = list(urb="rural"),
#' where2 = list(urb="urban")
#' )
#' }



Expand Down
5 changes: 4 additions & 1 deletion R/counts.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@
#' @importFrom rlang .data
#'
#' @examples
#' counts(get_fars(years = 2019), where = list(states="Virginia", urb="rural"))
#'
#' \dontrun{
#' counts(get_fars(years = 2019), where = list(states="Virginia", urb="rural"))
#' }



Expand Down
5 changes: 4 additions & 1 deletion R/get_fars.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@
#'
#'
#' @examples
#' myFARS <- get_fars(years = 2021, states = "VA")
#'
#' \dontrun{
#' myFARS <- get_fars(years = 2021, states = "VA")
#' }


get_fars <- function(years = 2011:2021,
Expand Down
5 changes: 4 additions & 1 deletion R/get_gescrss.R
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@
#'
#'
#' @examples
#' myGESCRSS <- get_gescrss(years = 2021, regions = "s")
#'
#' \dontrun{
#' myGESCRSS <- get_gescrss(years = 2021, regions = "s")
#' }

get_gescrss <- function(years = 2011:2021,
regions = c("mw", "ne", "s", "w"),
Expand Down
22,258 changes: 13,216 additions & 9,042 deletions docs/articles/Searchable_Codebooks.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/news/index.html

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

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ articles:
Counts: Counts.html
Crash_sequence_of_events: Crash_sequence_of_events.html
Searchable_Codebooks: Searchable_Codebooks.html
last_built: 2024-02-15T16:11Z
last_built: 2024-02-21T00:24Z
urls:
reference: https://s87jackson.github.io/rfars/reference
article: https://s87jackson.github.io/rfars/articles
Expand Down
19 changes: 8 additions & 11 deletions docs/reference/compare_counts.html

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

11 changes: 4 additions & 7 deletions docs/reference/counts.html

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

5 changes: 4 additions & 1 deletion docs/reference/get_fars.html

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

5 changes: 4 additions & 1 deletion docs/reference/get_gescrss.html

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

2 changes: 1 addition & 1 deletion docs/search.json

Large diffs are not rendered by default.

13 changes: 8 additions & 5 deletions man/compare_counts.Rd

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

5 changes: 4 additions & 1 deletion man/counts.Rd

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

5 changes: 4 additions & 1 deletion man/get_fars.Rd

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

5 changes: 4 additions & 1 deletion man/get_gescrss.Rd

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

1 change: 1 addition & 0 deletions vignettes/Searchable_Codebooks.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ The tables below show the 2015 and 2020 values for the FARS codebook. The GES/CR
```{r, results='asis', warning=F, message=F}
temp <-
fars_codebook %>%
mutate(value_label = gsub("`", "", value_label)) %>%
separate_rows(years) %>%
rename(year=years) %>%
filter(!(name_ncsa %in% c("VPICMODEL", "MAK_MOD", "STATE", "VPICMAKE", "ALC_RES", "DR_WGT", "AGE", "PBAGE", "DRUGRES1", "DRUGRES2", "DRUGRES3", "TRAV_SP"))) %>%
Expand Down
22,257 changes: 13,216 additions & 9,041 deletions vignettes/Searchable_Codebooks.html

Large diffs are not rendered by default.

0 comments on commit cdb7daa

Please sign in to comment.