Skip to content

Commit

Permalink
Add mention of init_variable_list.
Browse files Browse the repository at this point in the history
  • Loading branch information
jensenmj committed Aug 5, 2024
1 parent d839960 commit 7d121fb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
8 changes: 6 additions & 2 deletions docs/articles/retrieve-and-summarize-data.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 @@ -4,7 +4,7 @@ pkgdown_sha: ~
articles:
add-standard-groupings: add-standard-groupings.html
retrieve-and-summarize-data: retrieve-and-summarize-data.html
last_built: 2024-08-03T05:42Z
last_built: 2024-08-05T16:33Z
urls:
reference: https://psrc.github.io/psrc.travelsurvey/reference
article: https://psrc.github.io/psrc.travelsurvey/articles
2 changes: 1 addition & 1 deletion docs/search.json

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions vignettes/retrieve-and-summarize-data.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ For efficiency, `get_psrc_hts()` only requests the variables you specify, so you
View(psrc_hts_varsearch("\\bmode\\b"))
```

To browse the entire variable list, open the internal data object `init_variable_list`:
```{r init_variable_list, message=FALSE, eval=FALSE}
View(psrc.travelsurvey:::init_variable_list)
```

Note: It is unnecessary to include the survey year, table ids, weights, or survey stratification variable (`sample_segment`) in your `survey_vars` argument; since they are necessary for later steps, `get_psrc_hts()` includes them implicitly. Factor variables and levels are applied from the codebook, and missing or skip-value codes are recoded as `NA`.

## Summarization
Expand Down

0 comments on commit 7d121fb

Please sign in to comment.